mate: update script list versions from the git repository

This commit is contained in:
José Romildo 2022-07-12 09:52:12 -03:00
parent deeb80c04a
commit f26e356bf1
3 changed files with 10 additions and 9 deletions

View File

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

View File

@ -37,12 +37,15 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.updateScript = mateUpdateScript {
inherit pname version;
url = "https://github.com/mate-desktop-legacy-archive/mate-icon-theme-faenza";
};
meta = with lib; {
description = "Faenza icon theme from MATE";
homepage = "https://mate-desktop.org";
license = licenses.gpl2Plus;
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = teams.mate.members;
};

View File

@ -48,10 +48,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript {
inherit pname version;
url = "https://pub.mate-desktop.org/releases/themes";
};
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
description = "A set of themes from MATE";