2015-08-20 06:56:32 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, which
|
|
|
|
, xfce
|
|
|
|
, glib
|
|
|
|
, pkgconfig
|
|
|
|
, libX11
|
2016-12-18 17:20:29 +00:00
|
|
|
, libXScrnSaver
|
|
|
|
, libXxf86misc
|
2015-08-20 06:56:32 +00:00
|
|
|
, gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
, dbus-glib
|
2015-08-20 06:56:32 +00:00
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${basename}-${version}";
|
|
|
|
basename = "light-locker";
|
2018-03-08 07:00:48 +00:00
|
|
|
version = "1.8.0";
|
2015-08-20 06:56:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "the-cavalry";
|
|
|
|
repo = basename;
|
|
|
|
rev = "v${version}";
|
2018-03-08 07:00:48 +00:00
|
|
|
sha256 = "1zsafc10bmliknf12h3mgy7f73lvgph0q0wkaqp42iagmw11yaj8";
|
2015-08-20 06:56:32 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-03-12 22:55:30 +00:00
|
|
|
buildInputs = [ which xfce.xfce4-dev-tools glib systemd
|
2018-02-25 02:23:58 +00:00
|
|
|
libX11 libXScrnSaver libXxf86misc gtk3 dbus-glib wrapGAppsHook ];
|
2015-08-20 06:56:32 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2016-12-18 17:20:29 +00:00
|
|
|
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" ];
|
|
|
|
|
2015-08-20 06:56:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/the-cavalry/light-locker;
|
2016-12-18 18:33:13 +00:00
|
|
|
description = "A simple session-locker for LightDM";
|
2015-08-20 06:56:32 +00:00
|
|
|
longDescription = ''
|
2016-12-18 18:33:13 +00:00
|
|
|
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.
|
2015-08-20 06:56:32 +00:00
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ obadz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|