nixpkgs/pkgs/development/libraries/libid3tag/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, zlib, gperf}:
2014-07-30 22:27:48 +00:00
stdenv.mkDerivation rec {
pname = "libid3tag";
2017-10-28 16:15:58 +00:00
version = "0.15.1b";
src = fetchurl {
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
};
2017-10-28 16:15:58 +00:00
outputs = [ "out" "dev" ];
setOutputFlags = false;
propagatedBuildInputs = [ zlib gperf ];
patches = [
./debian-patches.patch
./CVE-2017-11550-and-CVE-2017-11551.patch
];
2017-10-28 16:15:58 +00:00
preConfigure = ''
configureFlagsArray+=(
--includedir=$dev/include
)
'';
postInstall = ''
2017-10-28 16:15:58 +00:00
mkdir -p $dev/lib/pkgconfig
cp ${./id3tag.pc} $dev/lib/pkgconfig/id3tag.pc
substituteInPlace $dev/lib/pkgconfig/id3tag.pc \
--subst-var-by out $out \
2017-10-28 16:15:58 +00:00
--subst-var-by dev $dev \
--subst-var-by version "${version}"
2014-07-30 22:27:48 +00:00
'';
meta = with stdenv.lib; {
description = "ID3 tag manipulation library";
homepage = http://mad.sourceforge.net/;
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.unix;
};
}