From 8aec000495d23652708d0478a1303d83c48b319f Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Mon, 9 Mar 2015 17:31:47 +0100 Subject: zim: fixed xdg path (closes #4786) --- pkgs/applications/office/zim/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs/applications/office/zim') diff --git a/pkgs/applications/office/zim/default.nix b/pkgs/applications/office/zim/default.nix index 85ec081ea41..ac8059fc1d1 100644 --- a/pkgs/applications/office/zim/default.nix +++ b/pkgs/applications/office/zim/default.nix @@ -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 -- cgit 1.4.1