2006-12-16 18:24:49 +00:00
|
|
|
{ stdenv, runCommand, substituteAll, nix
|
|
|
|
, # URL of the Nixpkgs distribution that the installer will pull.
|
|
|
|
# Leave empty for a pure source distribution.
|
|
|
|
nixpkgsURL ? ""
|
|
|
|
}:
|
2006-11-08 02:34:14 +00:00
|
|
|
|
2006-12-10 22:29:44 +00:00
|
|
|
substituteAll {
|
2006-11-28 10:45:21 +00:00
|
|
|
src = ./nixos-installer.sh;
|
2006-11-08 09:31:45 +00:00
|
|
|
dir = "bin";
|
2006-11-08 02:34:14 +00:00
|
|
|
isExecutable = true;
|
2006-12-16 18:24:49 +00:00
|
|
|
inherit nix nixpkgsURL;
|
2006-11-13 19:01:39 +00:00
|
|
|
|
2006-11-28 10:45:21 +00:00
|
|
|
pathsFromGraph = ../helpers/paths-from-graph.sh;
|
2006-11-17 14:13:21 +00:00
|
|
|
|
2006-12-10 22:43:04 +00:00
|
|
|
nixClosure = runCommand "closure"
|
|
|
|
{exportReferencesGraph = ["refs" nix];}
|
|
|
|
"cp refs $out";
|
2006-11-08 02:34:14 +00:00
|
|
|
}
|