{ stdenv, fetchurl, pkgconfig, intltool, gtk3, dbus-glib, libXScrnSaver, libnotify, pam, systemd, mate, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "mate-screensaver-${version}";
version = "1.20.1";
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
sha256 = "1mcr2915wymwjy55m2z0l6b9dszabbv0my0xxsa1fb8xkr4hk4qh";
};
nativeBuildInputs = [
pkgconfig
intltool
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";
meta = with stdenv.lib; {
description = "Screen saver and locker for the MATE desktop";
homepage = http://mate-desktop.org;
license = with licenses; [ gpl2Plus lgpl2Plus ];
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
}