summary refs log tree commit diff
path: root/pkgs/applications/misc/gmtp
diff options
context:
space:
mode:
authorPiotr Bogdan <ppbogdan@gmail.com>2018-03-30 22:40:36 +0100
committerPiotr Bogdan <ppbogdan@gmail.com>2018-03-30 22:40:36 +0100
commit38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8 (patch)
treea44ddbca76687860657ecb656a914fba131847f7 /pkgs/applications/misc/gmtp
parentd5f356374cf85a2be9abad797be5e9f06cff7388 (diff)
downloadnixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar.gz
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar.bz2
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar.lz
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar.xz
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.tar.zst
nixlib-38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8.zip
gmtp: pass --datapath in the wrapper
gmtp gets somewhat confused trying to lookup some of its own assets when
installed system-wide. It first attempts to locate the path to its own binary by
searching for itself in $PATH, arrives at /run/current-system/sw/bin/gmtp, and
then performs lookups relative to that path without dereferencing the
symlink. Some of the lookups result in searching for, for example, icons in
/run/current-system/sw/bin/../share/gmtp/ which doesn't exist.
Diffstat (limited to 'pkgs/applications/misc/gmtp')
-rw-r--r--pkgs/applications/misc/gmtp/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gmtp/default.nix b/pkgs/applications/misc/gmtp/default.nix
index 423eea914b95..bb1556c7c4dc 100644
--- a/pkgs/applications/misc/gmtp/default.nix
+++ b/pkgs/applications/misc/gmtp/default.nix
@@ -17,6 +17,10 @@ stdenv.mkDerivation {
 
   enableParallelBuilding = true;
 
+  preFixup = ''
+    gappsWrapperArgs+=(--add-flags "--datapath \"$out/share\"");
+  '';
+
   meta = {
     description = "A simple MP3 and Media player client for UNIX and UNIX like systems.";
     homepage = https://gmtp.sourceforge.io;