{ stdenv, fetchurl, pkgconfig, intltool, gtk, glib, libid3tag, id3lib, taglib , libvorbis, libogg, flac }: stdenv.mkDerivation rec { name = "easytag-${version}"; version = "2.1.8"; src = fetchurl { url = "mirror://gnome/sources/easytag/2.1/${name}.tar.xz"; sha256 = "1ab5iv0a83cdf07qzi81ydfk5apay06nxags9m07msqalz4pabqs"; }; preConfigure = '' # pkg-config v0.23 should be enough. sed -i -e '/_pkg_min_version=0.24/s/24/23/' \ -e 's/have_mp3=no/have_mp3=yes/' \ -e 's/ID3TAG_DEPS="id3tag"/ID3TAG_DEPS=""/' configure ''; NIX_LDFLAGS = "-lid3tag -lz"; buildInputs = [ pkgconfig intltool gtk glib libid3tag id3lib taglib libvorbis libogg flac ]; meta = { description = "View and edit tags for various audio files"; homepage = "http://projects.gnome.org/easytag/"; license = stdenv.lib.licenses.gpl2Plus; }; }