mate: simplify update script

- No need to pass the version and attrPath arguments

+40 -41
+1 -1
pkgs/desktops/mate/atril/default.nix
··· 73 74 enableParallelBuilding = true; 75 76 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 77 78 meta = with lib; { 79 description = "A simple multi-page document viewer for the MATE desktop";
··· 73 74 enableParallelBuilding = true; 75 76 + passthru.updateScript = mateUpdateScript { inherit pname; }; 77 78 meta = with lib; { 79 description = "A simple multi-page document viewer for the MATE desktop";
+1 -1
pkgs/desktops/mate/caja-dropbox/default.nix
··· 53 54 enableParallelBuilding = true; 55 56 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 57 58 meta = with lib; { 59 description = "Dropbox extension for Caja file manager";
··· 53 54 enableParallelBuilding = true; 55 56 + passthru.updateScript = mateUpdateScript { inherit pname; }; 57 58 meta = with lib; { 59 description = "Dropbox extension for Caja file manager";
+1 -1
pkgs/desktops/mate/caja-extensions/default.nix
··· 61 62 enableParallelBuilding = true; 63 64 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 65 66 meta = with lib; { 67 description = "Set of extensions for Caja file manager";
··· 61 62 enableParallelBuilding = true; 63 64 + passthru.updateScript = mateUpdateScript { inherit pname; }; 65 66 meta = with lib; { 67 description = "Set of extensions for Caja file manager";
+1 -1
pkgs/desktops/mate/caja/default.nix
··· 43 44 enableParallelBuilding = true; 45 46 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 47 48 meta = with lib; { 49 description = "File manager for the MATE desktop";
··· 43 44 enableParallelBuilding = true; 45 46 + passthru.updateScript = mateUpdateScript { inherit pname; }; 47 48 meta = with lib; { 49 description = "File manager for the MATE desktop";
+2 -3
pkgs/desktops/mate/default.nix
··· 4 packages = self: with self; { 5 6 # Update script tailored to mate packages from git repository 7 - mateUpdateScript = { pname, version, odd-unstable ? true, rev-prefix ? "v", url ? null }: 8 pkgs.gitUpdater { 9 - inherit pname version odd-unstable rev-prefix; 10 url = if url == null then "https://git.mate-desktop.org/${pname}" else url; 11 - attrPath = "mate.${pname}"; 12 }; 13 14 atril = callPackage ./atril { };
··· 4 packages = self: with self; { 5 6 # Update script tailored to mate packages from git repository 7 + mateUpdateScript = { pname, odd-unstable ? true, rev-prefix ? "v", url ? null }: 8 pkgs.gitUpdater { 9 + inherit odd-unstable rev-prefix; 10 url = if url == null then "https://git.mate-desktop.org/${pname}" else url; 11 }; 12 13 atril = callPackage ./atril { };
+1 -1
pkgs/desktops/mate/engrampa/default.nix
··· 45 46 enableParallelBuilding = true; 47 48 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 49 50 meta = with lib; { 51 description = "Archive Manager for MATE";
··· 45 46 enableParallelBuilding = true; 47 48 + passthru.updateScript = mateUpdateScript { inherit pname; }; 49 50 meta = with lib; { 51 description = "Archive Manager for MATE";
+1 -1
pkgs/desktops/mate/eom/default.nix
··· 51 52 enableParallelBuilding = true; 53 54 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 55 56 meta = with lib; { 57 description = "An image viewing and cataloging program for the MATE desktop";
··· 51 52 enableParallelBuilding = true; 53 54 + passthru.updateScript = mateUpdateScript { inherit pname; }; 55 56 meta = with lib; { 57 description = "An image viewing and cataloging program for the MATE desktop";
+1 -1
pkgs/desktops/mate/libmatekbd/default.nix
··· 29 30 enableParallelBuilding = true; 31 32 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 33 34 meta = with lib; { 35 description = "Keyboard management library for MATE";
··· 29 30 enableParallelBuilding = true; 31 32 + passthru.updateScript = mateUpdateScript { inherit pname; }; 33 34 meta = with lib; { 35 description = "Keyboard management library for MATE";
+1 -1
pkgs/desktops/mate/libmatemixer/default.nix
··· 37 38 enableParallelBuilding = true; 39 40 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 41 42 meta = with lib; { 43 description = "Mixer library for MATE";
··· 37 38 enableParallelBuilding = true; 39 40 + passthru.updateScript = mateUpdateScript { inherit pname; }; 41 42 meta = with lib; { 43 description = "Mixer library for MATE";
+1 -1
pkgs/desktops/mate/libmateweather/default.nix
··· 38 39 enableParallelBuilding = true; 40 41 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 42 43 meta = with lib; { 44 description = "Library to access weather information from online services for MATE";
··· 38 39 enableParallelBuilding = true; 40 41 + passthru.updateScript = mateUpdateScript { inherit pname; }; 42 43 meta = with lib; { 44 description = "Library to access weather information from online services for MATE";
+1 -1
pkgs/desktops/mate/marco/default.nix
··· 50 51 enableParallelBuilding = true; 52 53 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 54 55 meta = with lib; { 56 description = "MATE default window manager";
··· 50 51 enableParallelBuilding = true; 52 53 + passthru.updateScript = mateUpdateScript { inherit pname; }; 54 55 meta = with lib; { 56 description = "MATE default window manager";
+1 -1
pkgs/desktops/mate/mate-applets/default.nix
··· 65 66 enableParallelBuilding = true; 67 68 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 69 70 meta = with lib; { 71 description = "Applets for use with the MATE panel";
··· 65 66 enableParallelBuilding = true; 67 68 + passthru.updateScript = mateUpdateScript { inherit pname; }; 69 70 meta = with lib; { 71 description = "Applets for use with the MATE panel";
+1 -1
pkgs/desktops/mate/mate-backgrounds/default.nix
··· 32 ninja 33 ]; 34 35 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 36 37 meta = with lib; { 38 description = "Background images and data for MATE";
··· 32 ninja 33 ]; 34 35 + passthru.updateScript = mateUpdateScript { inherit pname; }; 36 37 meta = with lib; { 38 description = "Background images and data for MATE";
+1 -1
pkgs/desktops/mate/mate-calc/default.nix
··· 37 38 enableParallelBuilding = true; 39 40 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 41 42 meta = with lib; { 43 description = "Calculator for the MATE desktop";
··· 37 38 enableParallelBuilding = true; 39 40 + passthru.updateScript = mateUpdateScript { inherit pname; }; 41 42 meta = with lib; { 43 description = "Calculator for the MATE desktop";
+1 -1
pkgs/desktops/mate/mate-common/default.nix
··· 15 16 enableParallelBuilding = true; 17 18 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 19 20 meta = with lib; { 21 description = "Common files for development of MATE packages";
··· 15 16 enableParallelBuilding = true; 17 18 + passthru.updateScript = mateUpdateScript { inherit pname; }; 19 20 meta = with lib; { 21 description = "Common files for development of MATE packages";
+1 -1
pkgs/desktops/mate/mate-control-center/default.nix
··· 69 70 enableParallelBuilding = true; 71 72 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 73 74 meta = with lib; { 75 description = "Utilities to configure the MATE desktop";
··· 69 70 enableParallelBuilding = true; 71 72 + passthru.updateScript = mateUpdateScript { inherit pname; }; 73 74 meta = with lib; { 75 description = "Utilities to configure the MATE desktop";
+1 -1
pkgs/desktops/mate/mate-desktop/default.nix
··· 34 35 enableParallelBuilding = true; 36 37 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 38 39 meta = with lib; { 40 description = "Library with common API for various MATE modules";
··· 34 35 enableParallelBuilding = true; 36 37 + passthru.updateScript = mateUpdateScript { inherit pname; }; 38 39 meta = with lib; { 40 description = "Library with common API for various MATE modules";
+1 -1
pkgs/desktops/mate/mate-icon-theme/default.nix
··· 43 44 enableParallelBuilding = true; 45 46 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 47 48 meta = with lib; { 49 description = "Icon themes from MATE";
··· 43 44 enableParallelBuilding = true; 45 46 + passthru.updateScript = mateUpdateScript { inherit pname; }; 47 48 meta = with lib; { 49 description = "Icon themes from MATE";
+1 -1
pkgs/desktops/mate/mate-indicator-applet/default.nix
··· 35 36 enableParallelBuilding = true; 37 38 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 39 40 meta = with lib; { 41 homepage = "https://github.com/mate-desktop/mate-indicator-applet";
··· 35 36 enableParallelBuilding = true; 37 38 + passthru.updateScript = mateUpdateScript { inherit pname; }; 39 40 meta = with lib; { 41 homepage = "https://github.com/mate-desktop/mate-indicator-applet";
+1 -1
pkgs/desktops/mate/mate-media/default.nix
··· 39 40 enableParallelBuilding = true; 41 42 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 43 44 meta = with lib; { 45 description = "Media tools for MATE";
··· 39 40 enableParallelBuilding = true; 41 42 + passthru.updateScript = mateUpdateScript { inherit pname; }; 43 44 meta = with lib; { 45 description = "Media tools for MATE";
+1 -1
pkgs/desktops/mate/mate-menus/default.nix
··· 36 37 enableParallelBuilding = true; 38 39 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 40 41 meta = with lib; { 42 broken = stdenv.isDarwin;
··· 36 37 enableParallelBuilding = true; 38 39 + passthru.updateScript = mateUpdateScript { inherit pname; }; 40 41 meta = with lib; { 42 broken = stdenv.isDarwin;
+1 -1
pkgs/desktops/mate/mate-netbook/default.nix
··· 37 38 enableParallelBuilding = true; 39 40 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 41 42 meta = with lib; { 43 description = "MATE utilities for netbooks";
··· 37 38 enableParallelBuilding = true; 39 40 + passthru.updateScript = mateUpdateScript { inherit pname; }; 41 42 meta = with lib; { 43 description = "MATE utilities for netbooks";
+1 -1
pkgs/desktops/mate/mate-notification-daemon/default.nix
··· 44 45 enableParallelBuilding = true; 46 47 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 48 49 meta = with lib; { 50 description = "Notification daemon for MATE Desktop";
··· 44 45 enableParallelBuilding = true; 46 47 + passthru.updateScript = mateUpdateScript { inherit pname; }; 48 49 meta = with lib; { 50 description = "Notification daemon for MATE Desktop";
+1 -1
pkgs/desktops/mate/mate-panel/default.nix
··· 63 64 enableParallelBuilding = true; 65 66 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 67 68 meta = with lib; { 69 description = "The MATE panel";
··· 63 64 enableParallelBuilding = true; 65 66 + passthru.updateScript = mateUpdateScript { inherit pname; }; 67 68 meta = with lib; { 69 description = "The MATE panel";
+1 -1
pkgs/desktops/mate/mate-polkit/default.nix
··· 35 36 enableParallelBuilding = true; 37 38 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 39 40 meta = with lib; { 41 description = "Integrates polkit authentication for MATE desktop";
··· 35 36 enableParallelBuilding = true; 37 38 + passthru.updateScript = mateUpdateScript { inherit pname; }; 39 40 meta = with lib; { 41 description = "Integrates polkit authentication for MATE desktop";
+1 -1
pkgs/desktops/mate/mate-power-manager/default.nix
··· 53 54 enableParallelBuilding = true; 55 56 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 57 58 meta = with lib; { 59 description = "The MATE Power Manager";
··· 53 54 enableParallelBuilding = true; 55 56 + passthru.updateScript = mateUpdateScript { inherit pname; }; 57 58 meta = with lib; { 59 description = "The MATE Power Manager";
+1 -1
pkgs/desktops/mate/mate-screensaver/default.nix
··· 49 50 enableParallelBuilding = true; 51 52 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 53 54 meta = with lib; { 55 description = "Screen saver and locker for the MATE desktop";
··· 49 50 enableParallelBuilding = true; 51 52 + passthru.updateScript = mateUpdateScript { inherit pname; }; 53 54 meta = with lib; { 55 description = "Screen saver and locker for the MATE desktop";
+1 -1
pkgs/desktops/mate/mate-sensors-applet/default.nix
··· 46 47 enableParallelBuilding = true; 48 49 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 50 51 meta = with lib; { 52 homepage = "https://github.com/mate-desktop/mate-sensors-applet";
··· 46 47 enableParallelBuilding = true; 48 49 + passthru.updateScript = mateUpdateScript { inherit pname; }; 50 51 meta = with lib; { 52 homepage = "https://github.com/mate-desktop/mate-sensors-applet";
+1 -1
pkgs/desktops/mate/mate-session-manager/default.nix
··· 63 64 passthru.providedSessions = [ "mate" ]; 65 66 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 67 68 meta = with lib; { 69 description = "MATE Desktop session manager";
··· 63 64 passthru.providedSessions = [ "mate" ]; 65 66 + passthru.updateScript = mateUpdateScript { inherit pname; }; 67 68 meta = with lib; { 69 description = "MATE Desktop session manager";
+1 -1
pkgs/desktops/mate/mate-settings-daemon/default.nix
··· 54 55 enableParallelBuilding = true; 56 57 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 58 59 meta = with lib; { 60 description = "MATE settings daemon";
··· 54 55 enableParallelBuilding = true; 56 57 + passthru.updateScript = mateUpdateScript { inherit pname; }; 58 59 meta = with lib; { 60 description = "MATE settings daemon";
+1 -1
pkgs/desktops/mate/mate-system-monitor/default.nix
··· 45 46 enableParallelBuilding = true; 47 48 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 49 50 meta = with lib; { 51 description = "System monitor for the MATE desktop";
··· 45 46 enableParallelBuilding = true; 47 48 + passthru.updateScript = mateUpdateScript { inherit pname; }; 49 50 meta = with lib; { 51 description = "System monitor for the MATE desktop";
+1 -1
pkgs/desktops/mate/mate-terminal/default.nix
··· 40 41 enableParallelBuilding = true; 42 43 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 44 45 passthru.tests.test = nixosTests.terminal-emulators.mate-terminal; 46
··· 40 41 enableParallelBuilding = true; 42 43 + passthru.updateScript = mateUpdateScript { inherit pname; }; 44 45 passthru.tests.test = nixosTests.terminal-emulators.mate-terminal; 46
+1 -1
pkgs/desktops/mate/mate-themes/default.nix
··· 48 49 enableParallelBuilding = true; 50 51 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 52 53 meta = with lib; { 54 description = "A set of themes from MATE";
··· 48 49 enableParallelBuilding = true; 50 51 + passthru.updateScript = mateUpdateScript { inherit pname; }; 52 53 meta = with lib; { 54 description = "A set of themes from MATE";
+1 -1
pkgs/desktops/mate/mate-user-guide/default.nix
··· 34 35 enableParallelBuilding = true; 36 37 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 38 39 meta = with lib; { 40 description = "MATE User Guide";
··· 34 35 enableParallelBuilding = true; 36 37 + passthru.updateScript = mateUpdateScript { inherit pname; }; 38 39 meta = with lib; { 40 description = "MATE User Guide";
+1 -1
pkgs/desktops/mate/mate-user-share/default.nix
··· 61 62 enableParallelBuilding = true; 63 64 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 65 66 meta = with lib; { 67 description = "User level public file sharing for the MATE desktop";
··· 61 62 enableParallelBuilding = true; 63 64 + passthru.updateScript = mateUpdateScript { inherit pname; }; 65 66 meta = with lib; { 67 description = "User level public file sharing for the MATE desktop";
+1 -1
pkgs/desktops/mate/mate-utils/default.nix
··· 48 49 enableParallelBuilding = true; 50 51 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 52 53 meta = with lib; { 54 description = "Utilities for the MATE desktop";
··· 48 49 enableParallelBuilding = true; 50 51 + passthru.updateScript = mateUpdateScript { inherit pname; }; 52 53 meta = with lib; { 54 description = "Utilities for the MATE desktop";
+1 -1
pkgs/desktops/mate/mozo/default.nix
··· 42 43 enableParallelBuilding = true; 44 45 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 46 47 meta = with lib; { 48 description = "MATE Desktop menu editor";
··· 42 43 enableParallelBuilding = true; 44 45 + passthru.updateScript = mateUpdateScript { inherit pname; }; 46 47 meta = with lib; { 48 description = "MATE Desktop menu editor";
+1 -1
pkgs/desktops/mate/pluma/default.nix
··· 47 48 enableParallelBuilding = true; 49 50 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 51 52 meta = with lib; { 53 description = "Powerful text editor for the MATE desktop";
··· 47 48 enableParallelBuilding = true; 49 50 + passthru.updateScript = mateUpdateScript { inherit pname; }; 51 52 meta = with lib; { 53 description = "Powerful text editor for the MATE desktop";
+1 -1
pkgs/desktops/mate/python-caja/default.nix
··· 35 36 enableParallelBuilding = true; 37 38 - passthru.updateScript = mateUpdateScript { inherit pname version; }; 39 40 meta = with lib; { 41 description = "Python binding for Caja components";
··· 35 36 enableParallelBuilding = true; 37 38 + passthru.updateScript = mateUpdateScript { inherit pname; }; 39 40 meta = with lib; { 41 description = "Python binding for Caja components";