easytag: add updateScript

+17 -15
+17 -15
pkgs/applications/audio/easytag/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, intltool, gtk3, glib, libid3tag, id3lib, taglib 2 2 , libvorbis, libogg, flac, itstool, libxml2, gsettings-desktop-schemas 3 - , makeWrapper, gnome3 3 + , gnome3, wrapGAppsHook 4 4 }: 5 5 6 - stdenv.mkDerivation rec { 7 - name = "easytag-${version}"; 8 - majorVersion = "2.4"; 9 - version = "${majorVersion}.3"; 6 + let 7 + pname = "easytag"; 8 + version = "2.4.3"; 9 + in stdenv.mkDerivation rec { 10 + name = "${pname}-${version}"; 10 11 11 12 src = fetchurl { 12 - url = "mirror://gnome/sources/easytag/${majorVersion}/${name}.tar.xz"; 13 + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; 13 14 sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"; 14 15 }; 15 16 16 - preFixup = '' 17 - wrapProgram $out/bin/easytag \ 18 - --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share" \ 19 - --prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules" 20 - ''; 21 - 22 17 NIX_LDFLAGS = "-lid3tag -lz"; 23 18 24 - nativeBuildInputs = [ makeWrapper pkgconfig intltool ]; 19 + nativeBuildInputs = [ pkgconfig intltool itstool libxml2 wrapGAppsHook ]; 25 20 buildInputs = [ 26 21 gtk3 glib libid3tag id3lib taglib libvorbis libogg flac 27 - itstool libxml2 gsettings-desktop-schemas gnome3.defaultIconTheme (stdenv.lib.getLib gnome3.dconf) 22 + gsettings-desktop-schemas gnome3.defaultIconTheme 28 23 ]; 29 24 25 + passthru = { 26 + updateScript = gnome3.updateScript { 27 + packageName = pname; 28 + versionPolicy = "none"; 29 + }; 30 + }; 31 + 30 32 meta = with stdenv.lib; { 31 33 description = "View and edit tags for various audio files"; 32 - homepage = http://projects.gnome.org/easytag/; 34 + homepage = https://wiki.gnome.org/Apps/EasyTAG; 33 35 license = licenses.gpl2Plus; 34 36 maintainers = with maintainers; [ fuuzetsu ]; 35 37 platforms = platforms.linux;