zim: fixed xdg path (closes #4786)

This commit is contained in:
Pascal Wittmann 2015-03-09 17:31:47 +01:00
parent 78ec3797ab
commit 8aec000495
1 changed files with 5 additions and 2 deletions

View File

@ -74,10 +74,13 @@ buildPythonPackage rec {
# path to the executable in argv[0] therefore the wrapper is
# modified accordingly.
postFixup = ''
wrapProgram "$out/bin/zim" \
--prefix XDG_DATA_DIRS : "$out/share"
wrapPythonPrograms
sed -i "s#sys\.argv\[0\] = 'zim'#sys.argv[0] = '$out/bin/zim'#g" \
$out/bin/.zim-wrapped
sed -i "s#sys\.argv\[0\] = '.zim-wrapped'#sys.argv[0] = '$out/bin/zim'#g" \
$out/bin/..zim-wrapped-wrapped
if test -e $out/nix-support/propagated-build-inputs; then
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages