2008-02-08 15:59:15 +00: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 12:58:14 +00:00
|
|
|
pathsFromGraph = ../pkgs/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";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosRebuild = makeProg {
|
|
|
|
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-02-08 15:59:15 +00:00
|
|
|
nixosCheckout = makeProg {
|
|
|
|
name = "nixos-checkout";
|
|
|
|
src = ./nixos-checkout.sh;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosHardwareScan = makeProg {
|
|
|
|
name = "nixos-hardware-scan";
|
|
|
|
src = ./nixos-hardware-scan.pl;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|