summary refs log blame commit diff
path: root/pkgs/development/libraries/libid3tag/default.nix
blob: 4cc2f65440ca9b6631286c36ff9327240d43d0c4 (plain) (tree)
1
2
3
4
5
6
7





                                           
 




                                                                                
                                         
 

                                       





                                                    

     
                           
                                                 
                                           

                                           

    
{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 ];
  };
}