nixpkgs/installer/nixos-installer.nix
Eelco Dolstra d883483a0e * Use paths-from-graph.pl.
svn path=/nixos/trunk/; revision=7776
2007-01-23 15:07:30 +00:00

19 lines
453 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 {
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";
}