2018-07-21 02:44:44 +02:00
|
|
|
{stdenv, fetchurl, zlib, gperf}:
|
2014-07-31 00:27:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libid3tag-${version}";
|
2017-10-28 18:15:58 +02:00
|
|
|
version = "0.15.1b";
|
2008-02-11 22:02:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
|
|
|
|
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
|
|
|
|
};
|
|
|
|
|
2017-10-28 18:15:58 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
2014-06-16 21:51:24 +02:00
|
|
|
propagatedBuildInputs = [ zlib gperf ];
|
2008-02-11 22:02:38 +01:00
|
|
|
|
2018-11-01 13:17:01 +01:00
|
|
|
patches = [
|
|
|
|
./debian-patches.patch
|
|
|
|
./CVE-2017-11550-and-CVE-2017-11551.patch
|
|
|
|
];
|
2014-06-16 21:51:24 +02:00
|
|
|
|
2017-10-28 18:15:58 +02:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=(
|
|
|
|
--includedir=$dev/include
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2014-08-03 15:03:07 +02:00
|
|
|
postInstall = ''
|
2017-10-28 18:15:58 +02:00
|
|
|
mkdir -p $dev/lib/pkgconfig
|
|
|
|
cp ${./id3tag.pc} $dev/lib/pkgconfig/id3tag.pc
|
|
|
|
substituteInPlace $dev/lib/pkgconfig/id3tag.pc \
|
2014-08-03 15:03:07 +02:00
|
|
|
--subst-var-by out $out \
|
2017-10-28 18:15:58 +02:00
|
|
|
--subst-var-by dev $dev \
|
2014-08-03 15:03:07 +02:00
|
|
|
--subst-var-by version "${version}"
|
2014-07-31 00:27:48 +02:00
|
|
|
'';
|
|
|
|
|
2014-06-16 21:51:24 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "ID3 tag manipulation library";
|
2008-02-11 22:02:38 +01:00
|
|
|
homepage = http://mad.sourceforge.net/;
|
2014-06-16 21:51:24 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.fuuzetsu ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
}
|