4b7e9b5401
/ 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
20 lines
481 B
Nix
20 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";
|
|
}
|