mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 19:52:28 +03:00
97a1b91f1b
[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:" ]
32 lines
818 B
Nix
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 ];
|
|
};
|
|
}
|