From 38f7daebdb3b51ef977b5a4ac21e2dd38b96f0b8 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Fri, 30 Mar 2018 22:40:36 +0100 Subject: [PATCH] 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. --- pkgs/applications/misc/gmtp/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/gmtp/default.nix b/pkgs/applications/misc/gmtp/default.nix index 423eea914b9..bb1556c7c4d 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;