1 { lib, stdenv, fetchurl, zlib, gperf_3_0 }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/mad/libid3tag-${version}.tar.gz";
9 sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
12 outputs = [ "out" "dev" ];
13 setOutputFlags = false;
17 nativeBuildInputs = [ gperf_3_0 ];
19 buildInputs = [ zlib ];
22 ./debian-patches.patch
23 ./CVE-2017-11550-and-CVE-2017-11551.patch
27 configureFlagsArray+=(
28 --includedir=$dev/include
33 mkdir -p $dev/lib/pkgconfig
34 cp ${./id3tag.pc} $dev/lib/pkgconfig/id3tag.pc
35 substituteInPlace $dev/lib/pkgconfig/id3tag.pc \
36 --subst-var-by out $out \
37 --subst-var-by dev $dev \
38 --subst-var-by version "${version}"
42 description = "ID3 tag manipulation library";
43 homepage = "http://mad.sourceforge.net/";
44 license = licenses.gpl2;
46 platforms = platforms.unix;