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