forked from mirrors/nixpkgs
Merge pull request #21263 from Balletie/master
light-locker: use systemd/logind instead of UPower
This commit is contained in:
commit
a326ec7959
2 changed files with 34 additions and 4 deletions
|
@ -5,6 +5,8 @@
|
||||||
, glib
|
, glib
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, libX11
|
, libX11
|
||||||
|
, libXScrnSaver
|
||||||
|
, libXxf86misc
|
||||||
, gtk3
|
, gtk3
|
||||||
, dbus_glib
|
, dbus_glib
|
||||||
, systemd
|
, systemd
|
||||||
|
@ -23,18 +25,33 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0ygkp5vgkx2nfhfql6j2jsfay394gda23ir3sx4f72j4agsirjvj";
|
sha256 = "0ygkp5vgkx2nfhfql6j2jsfay394gda23ir3sx4f72j4agsirjvj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ which xfce.xfce4_dev_tools glib pkgconfig libX11 gtk3 dbus_glib systemd wrapGAppsHook ];
|
# Patch so that systemd is "found" when configuring.
|
||||||
|
patches = [ ./systemd.patch ];
|
||||||
|
|
||||||
|
buildInputs = [ which xfce.xfce4_dev_tools glib systemd pkgconfig
|
||||||
|
libX11 libXScrnSaver libXxf86misc gtk3 dbus_glib wrapGAppsHook ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
configureFlags = [ "--with-xf86gamma-ext" "--with-mit-ext"
|
||||||
|
"--with-dpms-ext" "--with-systemd"
|
||||||
|
# ConsoleKit and UPower were dropped in favor
|
||||||
|
# of systemd replacements
|
||||||
|
"--without-console-kit" "--without-upower" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/the-cavalry/light-locker;
|
homepage = https://github.com/the-cavalry/light-locker;
|
||||||
description = "Light-locker is a simple locker";
|
description = "A simple session-locker for LightDM";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
light-locker is 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.
|
A simple locker (forked from gnome-screensaver) that aims to
|
||||||
It relies on lightdm for locking and unlocking your session via ConsoleKit/UPower or logind/systemd.
|
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;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ obadz ];
|
maintainers = with maintainers; [ obadz ];
|
||||||
|
|
13
pkgs/misc/screensavers/light-locker/systemd.patch
Normal file
13
pkgs/misc/screensavers/light-locker/systemd.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/configure.ac.in b/configure.ac.in
|
||||||
|
index f7d5f5d..341bc83 100644
|
||||||
|
--- a/configure.ac.in
|
||||||
|
+++ b/configure.ac.in
|
||||||
|
@@ -424,7 +424,7 @@ AC_ARG_WITH(systemd,
|
||||||
|
[with_systemd=$withval], [with_systemd=auto])
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(SYSTEMD,
|
||||||
|
- [libsystemd-login],
|
||||||
|
+ [libsystemd],
|
||||||
|
[have_systemd=yes], [have_systemd=no])
|
||||||
|
|
||||||
|
if test "x$with_systemd" = "xauto" ; then
|
Loading…
Add table
Reference in a new issue