1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{ lib, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, pkg-config
, gtk3
, glib
, intltool
, dbus-glib
, libX11
, libXScrnSaver
, libXxf86vm
, libXext
, systemd
, pantheon
, wrapGAppsHook3
}:
stdenv.mkDerivation rec {
pname = "light-locker";
version = "1.9.0";
outputs = [ "out" "man" ];
src = fetchFromGitHub {
owner = "the-cavalry";
repo = pname;
rev = "v${version}";
sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
};
nativeBuildInputs = [
intltool
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
dbus-glib
glib
gtk3
libX11
libXScrnSaver
libXext
libXxf86vm
systemd
];
mesonFlags = [
"-Dmit-ext=true"
"-Ddpms-ext=true"
"-Dxf86gamma-ext=true"
"-Dsystemd=true"
"-Dupower=true"
"-Dlate-locking=true"
"-Dlock-on-suspend=true"
"-Dlock-on-lid=true"
"-Dgsettings=true"
];
postInstall = ''
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://github.com/the-cavalry/light-locker";
description = "Simple session-locker for LightDM";
longDescription = ''
A simple locker (forked from gnome-screensaver) that aims to
have simple, sane, secure defaults and be well integrated with
the desktop while not carrying any desktop-specific
dependencies.
It relies on LightDM for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
'';
license = licenses.gpl2;
maintainers = with maintainers; [ obadz ] ++ teams.pantheon.members;
platforms = platforms.linux;
};
}
|