Oops. Fix the permissions on initialized persistence file for Dia

This commit is contained in:
Michael Raskin 2014-06-13 01:33:18 +04:00
parent 6b35f37005
commit ed7b509fbf

View File

@ -36,6 +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 'chmod u+rw "$HOME/.dia/persistence" ' >> dia
echo "\"$out/bin/"'.dia-wrapped" "$@"' >> dia
chmod a+x dia
'';