Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, pkg-config, libmtp, libid3tag, flac, libvorbis, gtk3 2, gsettings-desktop-schemas, wrapGAppsHook 3}: 4 5let version = "1.3.11"; in 6 7stdenv.mkDerivation { 8 pname = "gmtp"; 9 inherit version; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/gmtp/gMTP-${version}/gmtp-${version}.tar.gz"; 13 sha256 = "04q6byyq002fhzkc2rkkahwh5b6272xakaj4m3vwm8la8jf0r0ss"; 14 }; 15 16 nativeBuildInputs = [ pkg-config wrapGAppsHook ]; 17 buildInputs = [ libmtp libid3tag flac libvorbis gtk3 gsettings-desktop-schemas ]; 18 19 enableParallelBuilding = true; 20 21 # Workaround build failure on -fno-common toolchains: 22 # ld: gmtp-preferences.o:src/main.h:72: multiple definition of 23 # `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here 24 # TODO: can be removed when 1.4.0 is released. 25 env.NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 preFixup = '' 28 gappsWrapperArgs+=(--add-flags "--datapath $out/share"); 29 ''; 30 31 meta = { 32 description = "A simple MP3 and Media player client for UNIX and UNIX like systems"; 33 homepage = "https://gmtp.sourceforge.io"; 34 platforms = lib.platforms.linux; 35 maintainers = [ ]; 36 license = lib.licenses.bsd3; 37 }; 38}