2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libmtp, libid3tag, flac, libvorbis, gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
, gsettings-desktop-schemas, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
let version = "1.3.11"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gmtp";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/gmtp/gMTP-${version}/gmtp-${version}.tar.gz";
|
|
|
|
sha256 = "04q6byyq002fhzkc2rkkahwh5b6272xakaj4m3vwm8la8jf0r0ss";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libmtp libid3tag flac libvorbis gtk3 gsettings-desktop-schemas ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: gmtp-preferences.o:src/main.h:72: multiple definition of
|
|
|
|
# `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here
|
|
|
|
# TODO: can be removed when 1.4.0 is released.
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preFixup = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
gappsWrapperArgs+=(--add-flags "--datapath $out/share");
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A simple MP3 and Media player client for UNIX and UNIX like systems";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://gmtp.sourceforge.io";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|