nixpkgs/test/installer.nix
Eelco Dolstra 82ce465751 * Use `exportReferencesGraph' to register the references of the
initial Nix installation correctly.

svn path=/nixu/trunk/; revision=7021
2006-11-13 19:01:39 +00:00

23 lines
459 B
Nix

{ stdenv, genericSubstituter, shell, nix
}:
genericSubstituter {
src = ./installer.sh;
dir = "bin";
isExecutable = true;
inherit shell nix;
nixClosure = stdenv.mkDerivation {
name = "closure";
exportReferencesGraph = ["refs" nix];
builder = builtins.toFile "builder.sh" "
source $stdenv/setup
if ! test -e refs; then
echo 'Your Nix installation is too old!'
exit 1
fi
cp refs $out
";
};
}