nixpkgs/installer/nixos-installer.nix

20 lines
481 B
Nix
Raw Normal View History

{ stdenv, perl, runCommand, substituteAll, nix
, # URL of the Nixpkgs distribution that the installer will pull.
# Leave empty for a pure source distribution.
nixpkgsURL ? ""
}:
substituteAll {
name = "nixos-installer";
src = ./nixos-installer.sh;
dir = "bin";
isExecutable = true;
inherit nix nixpkgsURL perl;
pathsFromGraph = ../helpers/paths-from-graph.pl;
nixClosure = runCommand "closure"
{exportReferencesGraph = ["refs" nix];}
"cp refs $out";
}