2022-07-12 12:56:56 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, dbus-glib
|
|
|
|
, libXScrnSaver
|
|
|
|
, libnotify
|
|
|
|
, libxml2
|
2024-02-22 12:48:18 +00:00
|
|
|
, mate-desktop
|
|
|
|
, mate-menus
|
|
|
|
, mate-panel
|
2022-07-12 12:56:56 +01:00
|
|
|
, pam
|
|
|
|
, systemd
|
2024-04-26 21:24:03 +01:00
|
|
|
, wrapGAppsHook3
|
2022-07-12 12:56:56 +01:00
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2017-12-31 14:11:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mate-screensaver";
|
2024-02-22 12:48:18 +00:00
|
|
|
version = "1.28.0";
|
2017-12-31 14:11:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-02-22 12:48:18 +00:00
|
|
|
sha256 = "ag8kqPhKL5XhARSrU+Y/1KymiKVf3FA+1lDgpBDj6nA=";
|
2017-12-31 14:11:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-02-14 14:09:49 +00:00
|
|
|
gettext
|
2020-02-12 17:51:22 +00:00
|
|
|
libxml2 # provides xmllint
|
2024-04-26 21:24:03 +01:00
|
|
|
wrapGAppsHook3
|
2017-12-31 14:11:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
dbus-glib
|
2017-12-31 14:11:14 +00:00
|
|
|
libXScrnSaver
|
|
|
|
libnotify
|
2024-02-22 12:48:18 +00:00
|
|
|
mate-desktop
|
|
|
|
mate-menus
|
|
|
|
mate-panel
|
2017-12-31 14:11:14 +00:00
|
|
|
pam
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--without-console-kit" ];
|
2017-12-31 14:11:14 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "DBUS_SESSION_SERVICE_DIR=$(out)/etc" ];
|
2017-12-31 14:11:14 +00:00
|
|
|
|
2020-02-14 21:52:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-09-27 22:39:18 +01:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-02 20:58:16 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 14:11:14 +00:00
|
|
|
description = "Screen saver and locker for the MATE desktop";
|
2020-02-12 17:51:22 +00:00
|
|
|
homepage = "https://mate-desktop.org";
|
2017-12-31 14:11:14 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
|
|
|
platforms = platforms.unix;
|
2021-09-21 20:45:29 +01:00
|
|
|
maintainers = teams.mate.members;
|
2017-12-31 14:11:14 +00:00
|
|
|
};
|
|
|
|
}
|