Fix dia when run not from $PATH

This commit is contained in:
Michael Raskin 2014-06-13 01:22:44 +04:00
parent 7dc09de565
commit 6b35f37005

View file

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
mv dia .dia-wrapped
echo '#! ${stdenv.shell}' >> dia
echo 'test -f "$HOME/.dia/persistence" || cp ${correctPersistence} "$HOME/.dia/persistence" ' >> dia
echo '.dia-wrapped "$@"' >> dia
echo "\"$out/bin/"'.dia-wrapped" "$@"' >> dia
chmod a+x dia
'';