Skip to content
Snippets Groups Projects
Commit e8a95108 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Nix-build places a symlink `result' in the current directory to the

  store object just built.
parent 9bf7a5f5
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,16 @@ for i in "$@"; do
for j in $storeExpr; do
echo "store expression is $j" >&2
done
nix-store -qnfv $extraArgs $storeExpr
outPath=$(nix-store -qnfv $extraArgs $storeExpr)
echo $outPath
if test -e result; then
if ! test -L result; then
echo "cannot remove \`result\' (not a symlink)"
exit 1
fi
rm result
fi
ln -s $outPath result
;;
esac
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment