nixpkgs/pkgs/development/libraries/libid3tag/default.nix
Sven Keidel 97a1b91f1b libid3tag: move pkgconfig file into the nix-expression directory
[Bjørn Forsman:
 * use "mkdir -p" instead of "ensureDir" (deprecated)
 * place *.pc file in $out/lib/pkgconfig/ (instead of
   $out/share/pkgconfig/ which doesn't work)
 * prefix commit message with "libid3tag:"
]
2014-08-03 17:34:40 +02:00

32 lines
818 B
Nix

{stdenv, fetchurl, writeText, zlib, gperf}:
stdenv.mkDerivation rec {
version = "0.15.1b";
name = "libid3tag-${version}";
src = fetchurl {
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
};
propagatedBuildInputs = [ zlib gperf ];
patches = [ ./debian-patches.patch ];
postInstall = ''
mkdir -p $out/lib/pkgconfig
cp ${./id3tag.pc} $out/lib/pkgconfig/id3tag.pc
substituteInPlace $out/lib/pkgconfig/id3tag.pc \
--subst-var-by out $out \
--subst-var-by version "${version}"
'';
meta = with stdenv.lib; {
description = "ID3 tag manipulation library";
homepage = http://mad.sourceforge.net/;
license = licenses.gpl2;
maintainers = [ maintainers.fuuzetsu ];
};
}