nixpkgs/installer/default.nix
Eelco Dolstra ce250ffb37 * Installation CD: include a lot of modules (SATA, PATA, Firewire,
USB, some SCSI controllers) in the initrd for mounting the CD.
* Add nix-hardware-scan to the system.
* Upstart: don't use the -v flag.
* Include the NixOS version in the ISO image filename.
* Include testdisk and ms-sys in the CD.
* Some bugfixes in the installer.

svn path=/nixos/trunk/; revision=10556
2008-02-08 15:59:15 +00:00

46 lines
803 B
Nix

{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;
pathsFromGraph = ../helpers/paths-from-graph.pl;
nixClosure = pkgs.runCommand "closure"
{exportReferencesGraph = ["refs" nix];}
"cp refs $out";
};
nixosRebuild = makeProg {
name = "nixos-rebuild";
src = ./nixos-rebuild.sh;
};
nixosCheckout = makeProg {
name = "nixos-checkout";
src = ./nixos-checkout.sh;
};
nixosHardwareScan = makeProg {
name = "nixos-hardware-scan";
src = ./nixos-hardware-scan.pl;
inherit (pkgs) perl;
};
}