nixpkgs-suyu/installer/nixos-installer.nix
Eelco Dolstra 4b7e9b5401 * Instructions on testing the installer without having to make an ISO
/ burn a CD, namely by making a loopback target file system.
* Installer: continue if the MANIFEST on the CD is missing (useful if
  we're not actually installing from a CD).

svn path=/nixos/trunk/; revision=7843
2007-02-05 15:12:47 +00:00

19 lines
481 B
Nix

{ stdenv, perl, runCommand, substituteAll, nix
, # URL of the Nixpkgs distribution that the installer will pull.
# Leave empty for a pure source distribution.
nixpkgsURL ? ""
}:
substituteAll {
name = "nixos-installer";
src = ./nixos-installer.sh;
dir = "bin";
isExecutable = true;
inherit nix nixpkgsURL perl;
pathsFromGraph = ../helpers/paths-from-graph.pl;
nixClosure = runCommand "closure"
{exportReferencesGraph = ["refs" nix];}
"cp refs $out";
}