2006-11-08 02:34:14 +00:00
|
|
|
{ stdenv, genericSubstituter, shell, nix
|
|
|
|
}:
|
|
|
|
|
|
|
|
genericSubstituter {
|
|
|
|
src = ./installer.sh;
|
2006-11-08 09:31:45 +00:00
|
|
|
dir = "bin";
|
2006-11-08 02:34:14 +00:00
|
|
|
isExecutable = true;
|
|
|
|
inherit shell nix;
|
2006-11-13 19:01:39 +00:00
|
|
|
|
2006-11-08 02:34:14 +00:00
|
|
|
nixClosure = stdenv.mkDerivation {
|
|
|
|
name = "closure";
|
2006-11-13 19:01:39 +00:00
|
|
|
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
|
|
|
|
";
|
2006-11-08 02:34:14 +00:00
|
|
|
};
|
|
|
|
}
|