mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
8f21b0119c
svn path=/nixos/trunk/; revision=7356
19 lines
442 B
Nix
19 lines
442 B
Nix
{ stdenv, runCommand, substituteAll, nix
|
|
, # URL of the Nixpkgs distribution that the installer will pull.
|
|
# Leave empty for a pure source distribution.
|
|
nixpkgsURL ? ""
|
|
}:
|
|
|
|
substituteAll {
|
|
src = ./nixos-installer.sh;
|
|
dir = "bin";
|
|
isExecutable = true;
|
|
inherit nix nixpkgsURL;
|
|
|
|
pathsFromGraph = ../helpers/paths-from-graph.sh;
|
|
|
|
nixClosure = runCommand "closure"
|
|
{exportReferencesGraph = ["refs" nix];}
|
|
"cp refs $out";
|
|
}
|