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