summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-07-10 01:25:08 +0200
committeraszlig <aszlig@redmoonstudios.org>2013-07-10 01:33:33 +0200
commit42c5584cb109cc6b8c6f611938445948c18b3985 (patch)
treeee0bf35862915f63d23b7e29978d6f486f78995a /pkgs/applications/audio
parent9ba86ecd14c57b9946844e8b16cacfa8ef6d8ceb (diff)
downloadnixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar.gz
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar.bz2
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar.lz
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar.xz
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.tar.zst
nixlib-42c5584cb109cc6b8c6f611938445948c18b3985.zip
easytag: Update to version 2.1.8.
Easytag has moved to gnome.org and thus this commit also updates and cleans up a
few meta attributes. More information about the move can be found in the
announcement:

https://mail.gnome.org/archives/easytag-list/2012-November/msg00006.html

In order to get it to compile, we need to do a bit of patching, for example the
configure script tries to find libid3tag through pkg-config, but unfortunately
libid3tag doesn't have a *.pc script, so we're patching it out of the configure
script and use NIX_LDFLAGS to inject the library during linking (note the "-lz"
- it's a propagated dependency of libid3tag).

Also added for MP4 support: taglib.

Thanks to @devhell for the notification of the new upstream release.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/easytag/default.nix38
1 files changed, 24 insertions, 14 deletions
diff --git a/pkgs/applications/audio/easytag/default.nix b/pkgs/applications/audio/easytag/default.nix
index 18a31460987d..c421dcc60cbd 100644
--- a/pkgs/applications/audio/easytag/default.nix
+++ b/pkgs/applications/audio/easytag/default.nix
@@ -1,22 +1,32 @@
-{ stdenv, fetchurl, pkgconfig, gtk, libid3tag, id3lib, libvorbis, libogg, flac }:
+{ stdenv, fetchurl, pkgconfig, intltool, gtk, glib, libid3tag, id3lib, taglib
+, libvorbis, libogg, flac
+}:
 
-let
-
-  version = "2.1.7";
-  sha256 = "bfed34cbdce96aca299a0db2b531dbc66feb489b911a34f0a9c67f2eb6ee9301";
-
-in stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "easytag-${version}";
+  version = "2.1.8";
+
   src = fetchurl {
-    url = "mirror://sourceforge/easytag/easytag-${version}.tar.bz2";
-    inherit sha256;
+    url = "mirror://gnome/sources/easytag/2.1/${name}.tar.xz";
+    sha256 = "1ab5iv0a83cdf07qzi81ydfk5apay06nxags9m07msqalz4pabqs";
   };
 
-  buildInputs = [ pkgconfig gtk libid3tag id3lib libvorbis libogg flac ];
+  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 = "an utility for viewing and editing tags for various audio files";
-    homepage = http://http://easytag.sourceforge.net/;
-    license = stdenv.lib.licenses.gpl2;
+    description = "View and edit tags for various audio files";
+    homepage = "http://projects.gnome.org/easytag/";
+    license = stdenv.lib.licenses.gpl2Plus;
   };
-}
\ No newline at end of file
+}