nixpkgs/installer/nixos-install.nix
Eelco Dolstra 25684805d5 * nixos-installer -> nixos-install.
svn path=/nixos/trunk/; revision=7852
2007-02-06 10:46:36 +00:00

20 lines
477 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-install";
src = ./nixos-install.sh;
dir = "bin";
isExecutable = true;
inherit nix nixpkgsURL perl;
pathsFromGraph = ../helpers/paths-from-graph.pl;
nixClosure = runCommand "closure"
{exportReferencesGraph = ["refs" nix];}
"cp refs $out";
}