From a610006a095018f06809eb6f87c98606b32bb77c Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 15 Mar 2018 13:23:06 +0100 Subject: [PATCH] gnome3.nautilus-sendto: clean up --- .../gnome-3/apps/nautilus-sendto/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix b/pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix index 2812e7673b40..7ac8b4dfe116 100644 --- a/pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix +++ b/pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix @@ -1,18 +1,27 @@ { stdenv, fetchurl, meson, ninja, glib, pkgconfig, gnome3, appstream-glib, gettext }: -stdenv.mkDerivation rec { - name = "nautilus-sendto-${version}"; - +let + pname = "nautilus-sendto"; version = "3.8.6"; +in stdenv.mkDerivation rec { + name = "${pname}-${version}"; + src = fetchurl { - url = "mirror://gnome/sources/nautilus-sendto/3.8/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/3.8/${name}.tar.xz"; sha256 = "164d7c6e8bae29c4579bcc67a7bf50d783662b1545b62f3008e7ea3c0410e04d"; }; nativeBuildInputs = [ meson ninja pkgconfig appstream-glib gettext ]; buildInputs = [ glib ]; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "gnome3.${pname}"; + }; + }; + meta = with stdenv.lib; { description = "Integrates Evolution and Pidgin into the Nautilus file manager"; maintainers = gnome3.maintainers;