treewide: Add passthru.updateScript to gnome pkgs

`updateScript` lets us update packages automatically.
For packages that are hosted on the gnome mirror it's very easy to add
that. Inspired by https://github.com/NixOS/nixpkgs/issues/36150
This commit is contained in:
Daniel Schaefer
2019-05-12 22:23:48 +02:00
parent 5b9bb1b431
commit b85ccbac54
29 changed files with 205 additions and 113 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, glib, gobject-introspection }:
{ stdenv, fetchurl, pkgconfig, gettext, glib, gobject-introspection, gnome3 }:
stdenv.mkDerivation rec {
pname = "gnome-menus";
@@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig gettext ];
buildInputs = [ glib gobject-introspection ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = {
homepage = https://www.gnome.org;
description = "Library that implements freedesktops's Desktop Menu Specification in GNOME";