depot/pkgs/desktops/mate/mate-screensaver/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

63 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, gettext
, gtk3
, dbus-glib
, libXScrnSaver
, libnotify
, libxml2
, mate-desktop
, mate-menus
, mate-panel
, pam
, systemd
, wrapGAppsHook3
, mateUpdateScript
}:
stdenv.mkDerivation rec {
pname = "mate-screensaver";
version = "1.28.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "ag8kqPhKL5XhARSrU+Y/1KymiKVf3FA+1lDgpBDj6nA=";
};
nativeBuildInputs = [
pkg-config
gettext
libxml2 # provides xmllint
wrapGAppsHook3
];
buildInputs = [
gtk3
dbus-glib
libXScrnSaver
libnotify
mate-desktop
mate-menus
mate-panel
pam
systemd
];
configureFlags = [ "--without-console-kit" ];
makeFlags = [ "DBUS_SESSION_SERVICE_DIR=$(out)/etc" ];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Screen saver and locker for the MATE desktop";
homepage = "https://mate-desktop.org";
license = with licenses; [ gpl2Plus lgpl2Plus ];
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}