mate: define mateUpdateScript attribute

This commit is contained in:
José Romildo Malaquias 2021-04-01 12:30:38 -03:00
parent 42fa68be1d
commit 9acbc0c674

View file

@ -1,10 +1,18 @@
{ newScope }:
{ pkgs, newScope }:
let
callPackage = newScope self;
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.genericUpdater {
inherit pname version odd-unstable;
attrPath = "mate.${pname}";
versionLister = "${pkgs.common-updater-scripts}/bin/list-archive-two-level-versions ${url}";
};
atril = callPackage ./atril { };
caja = callPackage ./caja { };
caja-dropbox = callPackage ./caja-dropbox { };