nixpkgs/pkgs/desktops/mate/mate-screensaver/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

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