2021-04-25 03:57:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gettext, gtk3, dbus-glib, libXScrnSaver, libnotify, libxml2, pam, systemd, mate, wrapGAppsHook, mateUpdateScript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-screensaver";
|
2021-04-25 03:57:28 +00:00
|
|
|
version = "1.24.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-04-25 03:57:28 +00:00
|
|
|
sha256 = "18hxhglryfcbpbns9izigiws7lvdv5dnsaaz226ih3aar5db1ysy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
libxml2 # provides xmllint
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
dbus-glib
|
|
|
|
libXScrnSaver
|
|
|
|
libnotify
|
|
|
|
pam
|
|
|
|
systemd
|
|
|
|
mate.mate-desktop
|
|
|
|
mate.mate-menus
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--without-console-kit" ];
|
|
|
|
|
|
|
|
makeFlags = [ "DBUS_SESSION_SERVICE_DIR=$(out)/etc" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Screen saver and locker for the MATE desktop";
|
|
|
|
homepage = "https://mate-desktop.org";
|
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|