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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user