nixpkgs/test/installer.nix
Eelco Dolstra 6705045334 * Start of the installer: copy the closure of Nix to the target device
so we can then do nix-env operations in a chroot to do the actual
  installation.

svn path=/nixu/trunk/; revision=6977
2006-11-08 02:34:14 +00:00

16 lines
329 B
Nix

{ stdenv, genericSubstituter, shell, nix
}:
genericSubstituter {
src = ./installer.sh;
isExecutable = true;
inherit shell nix;
nixClosure = stdenv.mkDerivation {
name = "closure";
builder = builtins.toFile "builder.sh"
"source $stdenv/setup; /nix/bin/nix-store -qR $nix > $out";
inherit nix;
};
}