3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/installer/nixos-installer.nix
Eelco Dolstra 8f21b0119c * Get the CD to build again.
svn path=/nixos/trunk/; revision=7356
2006-12-16 18:24:49 +00:00

19 lines
442 B
Nix

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