dia: undo persistence wrapper

The wrapper was introduced as workaround for #1691. The original bug was
present in 0.97.2 but was fixed in 0.97.3.

-13
-13
pkgs/applications/graphics/dia/default.nix
··· 11 11 sha256 = "0d3x6w0l6fwd0l8xx06y1h56xf8ss31yzia3a6xr9y28xx44x492"; 12 12 }; 13 13 14 - correctPersistence = fetchurl { 15 - url = https://launchpadlibrarian.net/132677658/persistence; 16 - sha256 = "1rv6zv9i03bna4bdp1wzn72lg7kdwi900y1izdq0imibi54nxjsk"; 17 - }; 18 - 19 14 buildInputs = 20 15 [ gtk2 perlXMLParser libxml2 gettext python libxml2Python docbook5 21 16 libxslt docbook_xsl libart_lgpl ··· 31 26 # It have no reasons to exist in a redistribuable package 32 27 postInstall = '' 33 28 rm $out/share/icons/hicolor/icon-theme.cache 34 - 35 - cd "$out"/bin/ 36 - mv dia .dia-wrapped 37 - echo '#! ${stdenv.shell}' >> dia 38 - echo 'test -f "$HOME/.dia/persistence" || cp ${correctPersistence} "$HOME/.dia/persistence" ' >> dia 39 - echo 'chmod u+rw "$HOME/.dia/persistence" ' >> dia 40 - echo "\"$out/bin/"'.dia-wrapped" "$@"' >> dia 41 - chmod a+x dia 42 29 ''; 43 30 44 31 meta = {