1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/applications/misc/gmtp/default.nix
Piotr Bogdan 38f7daebdb 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.
2018-03-30 22:40:36 +01:00

32 lines
918 B
Nix

{ stdenv, fetchurl, pkgconfig, libmtp, libid3tag, flac, libvorbis, gtk3
, gsettings-desktop-schemas, wrapGAppsHook
}:
let version = "1.3.11"; in
stdenv.mkDerivation {
name = "gmtp-${version}";
src = fetchurl {
url = "mirror://sourceforge/gmtp/gMTP-${version}/gmtp-${version}.tar.gz";
sha256 = "04q6byyq002fhzkc2rkkahwh5b6272xakaj4m3vwm8la8jf0r0ss";
};
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
buildInputs = [ libmtp libid3tag flac libvorbis gtk3 gsettings-desktop-schemas ];
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;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.pbogdan ];
license = stdenv.lib.licenses.bsd3;
};
}