Test executables in NARs

This commit is contained in:
Eelco Dolstra 2014-02-26 18:59:01 +01:00
parent 91f25f0510
commit 3d0a9ec825
2 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,8 @@ nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* |
nix-store --option binary-caches "file://$cacheDir" -r $outPath
[ -x $outPath/program ]
# But with the right configuration, "nix-env -qas" should also work.
clearStore

View file

@ -9,4 +9,8 @@ ln -s $input2 $out/input-2
# Self-reference.
ln -s $out $out/self
# Executable.
echo program > $out/program
chmod +x $out/program
echo FOO