2009-03-25 15:47:29 +00:00
|
|
|
{pkgs, config, nix}:
|
2008-02-08 15:59:15 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
makeProg = args: pkgs.substituteAll (args // {
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
});
|
|
|
|
|
2008-08-26 19:45:06 +00:00
|
|
|
|
2008-08-27 09:37:44 +00:00
|
|
|
nixosCheckout = (import ./nixos-checkout.nix) {
|
2008-08-26 19:45:06 +00:00
|
|
|
inherit pkgs config makeProg;
|
|
|
|
};
|
|
|
|
|
2008-08-17 01:11:57 +00:00
|
|
|
|
2008-02-08 15:59:15 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nixosInstall = makeProg {
|
|
|
|
name = "nixos-install";
|
|
|
|
src = ./nixos-install.sh;
|
|
|
|
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
inherit nix;
|
|
|
|
nixpkgsURL = config.installer.nixpkgsURL;
|
|
|
|
|
2009-03-25 15:47:29 +00:00
|
|
|
pathsFromGraph = "${pkgs.path}/build-support/kernel/paths-from-graph.pl";
|
2008-02-08 15:59:15 +00:00
|
|
|
|
|
|
|
nixClosure = pkgs.runCommand "closure"
|
|
|
|
{exportReferencesGraph = ["refs" nix];}
|
|
|
|
"cp refs $out";
|
|
|
|
};
|
|
|
|
|
2008-08-26 19:45:06 +00:00
|
|
|
nixosRebuild = let inherit (nixosCheckout) repos defaultRepo;
|
|
|
|
in makeProg {
|
2008-08-17 01:11:57 +00:00
|
|
|
defaultNIXOS = (defaultRepo repos.nixos ).target;
|
|
|
|
defaultNIXPKGS = (defaultRepo repos.nixpkgs).target;
|
2008-02-08 15:59:15 +00:00
|
|
|
name = "nixos-rebuild";
|
|
|
|
src = ./nixos-rebuild.sh;
|
|
|
|
};
|
|
|
|
|
2008-03-03 23:31:48 +00:00
|
|
|
nixosGenSeccureKeys = makeProg {
|
|
|
|
name = "nixos-gen-seccure-keys";
|
|
|
|
src = ./nixos-gen-seccure-keys.sh;
|
|
|
|
};
|
|
|
|
|
2008-08-26 19:45:06 +00:00
|
|
|
inherit (nixosCheckout) nixosCheckout;
|
2008-02-08 15:59:15 +00:00
|
|
|
|
|
|
|
nixosHardwareScan = makeProg {
|
|
|
|
name = "nixos-hardware-scan";
|
|
|
|
src = ./nixos-hardware-scan.pl;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|