From 7af72719f1c88b1ff4aff4560fdb331f1b677791 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 3 Mar 2018 02:20:58 +0100 Subject: [PATCH] gnome3.gexiv2: add updateScript --- pkgs/desktops/gnome-3/misc/gexiv2/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/desktops/gnome-3/misc/gexiv2/default.nix b/pkgs/desktops/gnome-3/misc/gexiv2/default.nix index 852ed00ed90..3f307377fc3 100644 --- a/pkgs/desktops/gnome-3/misc/gexiv2/default.nix +++ b/pkgs/desktops/gnome-3/misc/gexiv2/default.nix @@ -1,14 +1,14 @@ { stdenv, fetchurl, meson, ninja, pkgconfig, exiv2, glib, gnome3, gobjectIntrospection, vala }: let - majorVersion = "0.10"; + pname = "gexiv2"; + version = "0.10.7"; in stdenv.mkDerivation rec { - name = "gexiv2-${version}"; - version = "${majorVersion}.7"; + name = "${pname}-${version}"; src = fetchurl { - url = "mirror://gnome/sources/gexiv2/${majorVersion}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; sha256 = "1f7312zygw77ml37i5qilhfvmjm59dn753ax71rcb2jm1p76vgcb"; }; @@ -33,9 +33,17 @@ stdenv.mkDerivation rec { buildInputs = [ glib ]; propagatedBuildInputs = [ exiv2 ]; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "gnome3.${pname}"; + }; + }; + meta = with stdenv.lib; { homepage = https://wiki.gnome.org/Projects/gexiv2; description = "GObject wrapper around the Exiv2 photo metadata library"; + license = licenses.gpl2; platforms = platforms.unix; maintainers = gnome3.maintainers; };