nixpkgs/installer/nixos-installer.nix
Eelco Dolstra acf656125c * Lots of refactoring.
* Clear the PATH in most scripts.  This helps to ensure purity.

svn path=/nixos/trunk/; revision=7299
2006-12-10 22:29:44 +00:00

17 lines
372 B
Nix

{stdenv, substituteAll, nix}:
substituteAll {
src = ./nixos-installer.sh;
dir = "bin";
isExecutable = true;
inherit nix;
pathsFromGraph = ../helpers/paths-from-graph.sh;
nixClosure = stdenv.mkDerivation {
name = "closure";
exportReferencesGraph = ["refs" nix];
builder = builtins.toFile "builder.sh" "source $stdenv/setup; cp refs $out";
};
}