mate: simplify update script

- No need to pass the version and attrPath arguments
This commit is contained in:
José Romildo 2022-09-27 18:39:18 -03:00
parent 4a9e77cea0
commit 64ce882421
39 changed files with 40 additions and 41 deletions

View file

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "A simple multi-page document viewer for the MATE desktop";

View file

@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Dropbox extension for Caja file manager";

View file

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Set of extensions for Caja file manager";

View file

@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "File manager for the MATE desktop";

View file

@ -4,11 +4,10 @@ let
packages = self: with self; {
# Update script tailored to mate packages from git repository
mateUpdateScript = { pname, version, odd-unstable ? true, rev-prefix ? "v", url ? null }:
mateUpdateScript = { pname, odd-unstable ? true, rev-prefix ? "v", url ? null }:
pkgs.gitUpdater {
inherit pname version odd-unstable rev-prefix;
inherit odd-unstable rev-prefix;
url = if url == null then "https://git.mate-desktop.org/${pname}" else url;
attrPath = "mate.${pname}";
};
atril = callPackage ./atril { };

View file

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Archive Manager for MATE";

View file

@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "An image viewing and cataloging program for the MATE desktop";

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Keyboard management library for MATE";

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Mixer library for MATE";

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Library to access weather information from online services for MATE";

View file

@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE default window manager";

View file

@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Applets for use with the MATE panel";

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
ninja
];
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Background images and data for MATE";

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Calculator for the MATE desktop";

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Common files for development of MATE packages";

View file

@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Utilities to configure the MATE desktop";

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Library with common API for various MATE modules";

View file

@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Icon themes from MATE";

View file

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
homepage = "https://github.com/mate-desktop/mate-indicator-applet";

View file

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Media tools for MATE";

View file

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
broken = stdenv.isDarwin;

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE utilities for netbooks";

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Notification daemon for MATE Desktop";

View file

@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "The MATE panel";

View file

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Integrates polkit authentication for MATE desktop";

View file

@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "The MATE Power Manager";

View file

@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Screen saver and locker for the MATE desktop";

View file

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
homepage = "https://github.com/mate-desktop/mate-sensors-applet";

View file

@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
passthru.providedSessions = [ "mate" ];
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE Desktop session manager";

View file

@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE settings daemon";

View file

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "System monitor for the MATE desktop";

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
passthru.tests.test = nixosTests.terminal-emulators.mate-terminal;

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "A set of themes from MATE";

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE User Guide";

View file

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "User level public file sharing for the MATE desktop";

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Utilities for the MATE desktop";

View file

@ -42,7 +42,7 @@ python3.pkgs.buildPythonApplication rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE Desktop menu editor";

View file

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Powerful text editor for the MATE desktop";

View file

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Python binding for Caja components";