nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 gtk3,
8 dbus-glib,
9 libXScrnSaver,
10 libnotify,
11 libxml2,
12 mate-desktop,
13 mate-menus,
14 mate-panel,
15 pam,
16 systemd,
17 wrapGAppsHook3,
18 mateUpdateScript,
19}:
20
21stdenv.mkDerivation rec {
22 pname = "mate-screensaver";
23 version = "1.28.0";
24
25 src = fetchurl {
26 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
27 sha256 = "ag8kqPhKL5XhARSrU+Y/1KymiKVf3FA+1lDgpBDj6nA=";
28 };
29
30 nativeBuildInputs = [
31 pkg-config
32 gettext
33 libxml2 # provides xmllint
34 wrapGAppsHook3
35 ];
36
37 buildInputs = [
38 gtk3
39 dbus-glib
40 libXScrnSaver
41 libnotify
42 mate-desktop
43 mate-menus
44 mate-panel
45 pam
46 systemd
47 ];
48
49 configureFlags = [ "--without-console-kit" ];
50
51 makeFlags = [ "DBUS_SESSION_SERVICE_DIR=$(out)/etc" ];
52
53 enableParallelBuilding = true;
54
55 passthru.updateScript = mateUpdateScript { inherit pname; };
56
57 meta = with lib; {
58 description = "Screen saver and locker for the MATE desktop";
59 homepage = "https://mate-desktop.org";
60 license = with licenses; [
61 gpl2Plus
62 lgpl2Plus
63 ];
64 platforms = platforms.unix;
65 teams = [ teams.mate ];
66 };
67}