nixpkgs/pkgs/applications/misc/gmtp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, libmtp, libid3tag, flac, libvorbis, gtk3
, gsettings-desktop-schemas, wrapGAppsHook3
2017-03-22 17:20:16 +03:00
}:
let version = "1.3.11"; in
2017-03-22 17:20:16 +03:00
stdenv.mkDerivation {
2019-08-14 00:52:01 +03:00
pname = "gmtp";
inherit version;
2017-03-22 17:20:16 +03:00
src = fetchurl {
url = "mirror://sourceforge/gmtp/gMTP-${version}/gmtp-${version}.tar.gz";
sha256 = "04q6byyq002fhzkc2rkkahwh5b6272xakaj4m3vwm8la8jf0r0ss";
2017-03-22 17:20:16 +03:00
};
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
buildInputs = [ libmtp libid3tag flac libvorbis gtk3 gsettings-desktop-schemas ];
2017-03-22 17:20:16 +03:00
enableParallelBuilding = true;
# 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.
env.NIX_CFLAGS_COMPILE = "-fcommon";
preFixup = ''
gappsWrapperArgs+=(--add-flags "--datapath $out/share");
'';
2017-03-22 17:20:16 +03:00
meta = {
description = "Simple MP3 and Media player client for UNIX and UNIX like systems";
mainProgram = "gmtp";
homepage = "https://gmtp.sourceforge.io";
2021-01-15 08:42:41 +03:00
platforms = lib.platforms.linux;
2020-02-09 12:49:47 +03:00
maintainers = [ ];
2021-01-15 08:42:41 +03:00
license = lib.licenses.bsd3;
2017-03-22 17:20:16 +03:00
};
}