summary refs log tree commit diff
path: root/pkgs/development/libraries/libid3tag/default.nix
blob: b03d7643f0f36b0dd35d5a72b07dee2435a3152c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{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 ];
    platforms = platforms.unix;
  };
}