2008-02-08 16:59:15 +01:00
|
|
|
{pkgs, config, nix}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
makeProg = args: pkgs.substituteAll (args // {
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nixosInstall = makeProg {
|
|
|
|
name = "nixos-install";
|
|
|
|
src = ./nixos-install.sh;
|
|
|
|
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
inherit nix;
|
|
|
|
nixpkgsURL = config.installer.nixpkgsURL;
|
|
|
|
|
2008-03-19 13:58:14 +01:00
|
|
|
pathsFromGraph = ../pkgs/build-support/kernel/paths-from-graph.pl;
|
2008-02-08 16:59:15 +01:00
|
|
|
|
|
|
|
nixClosure = pkgs.runCommand "closure"
|
|
|
|
{exportReferencesGraph = ["refs" nix];}
|
|
|
|
"cp refs $out";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosRebuild = makeProg {
|
|
|
|
name = "nixos-rebuild";
|
|
|
|
src = ./nixos-rebuild.sh;
|
|
|
|
};
|
|
|
|
|
2008-03-04 00:31:48 +01:00
|
|
|
nixosGenSeccureKeys = makeProg {
|
|
|
|
name = "nixos-gen-seccure-keys";
|
|
|
|
src = ./nixos-gen-seccure-keys.sh;
|
|
|
|
};
|
|
|
|
|
2008-02-08 16:59:15 +01:00
|
|
|
nixosCheckout = makeProg {
|
|
|
|
name = "nixos-checkout";
|
|
|
|
src = ./nixos-checkout.sh;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosHardwareScan = makeProg {
|
|
|
|
name = "nixos-hardware-scan";
|
|
|
|
src = ./nixos-hardware-scan.pl;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|