2007-02-06 13:09:25 +00:00
|
|
|
{ perl, runCommand, substituteAll, nix
|
2006-12-16 18:24:49 +00:00
|
|
|
, # 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 {
|
2007-02-06 10:46:36 +00:00
|
|
|
name = "nixos-install";
|
|
|
|
src = ./nixos-install.sh;
|
2006-11-08 09:31:45 +00:00
|
|
|
dir = "bin";
|
2006-11-08 02:34:14 +00:00
|
|
|
isExecutable = true;
|
2007-01-23 15:07:30 +00:00
|
|
|
inherit nix nixpkgsURL perl;
|
2006-11-13 19:01:39 +00:00
|
|
|
|
2007-01-23 15:07:30 +00:00
|
|
|
pathsFromGraph = ../helpers/paths-from-graph.pl;
|
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
|
|
|
}
|