2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2015-08-20 08:56:32 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-04-18 14:28:45 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:30:45 +01:00
|
|
|
, pkg-config
|
2015-08-20 08:56:32 +02:00
|
|
|
, gtk3
|
2019-04-18 14:28:45 +02:00
|
|
|
, glib
|
|
|
|
, intltool
|
2018-02-25 03:23:58 +01:00
|
|
|
, dbus-glib
|
2019-04-18 14:28:45 +02:00
|
|
|
, libX11
|
|
|
|
, libXScrnSaver
|
|
|
|
, libXxf86vm
|
|
|
|
, libXext
|
2015-08-20 08:56:32 +02:00
|
|
|
, systemd
|
2019-04-18 14:28:45 +02:00
|
|
|
, pantheon
|
2015-08-20 08:56:32 +02:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-18 14:28:45 +02:00
|
|
|
pname = "light-locker";
|
|
|
|
version = "1.9.0";
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
2015-08-20 08:56:32 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "the-cavalry";
|
2019-04-18 14:28:45 +02:00
|
|
|
repo = pname;
|
2015-08-20 08:56:32 +02:00
|
|
|
rev = "v${version}";
|
2019-04-18 14:28:45 +02:00
|
|
|
sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
|
2015-08-20 08:56:32 +02:00
|
|
|
};
|
|
|
|
|
2019-04-18 14:28:45 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:30:45 +01:00
|
|
|
pkg-config
|
2019-09-02 06:08:17 +02:00
|
|
|
wrapGAppsHook
|
2019-04-18 14:28:45 +02:00
|
|
|
];
|
2015-08-20 08:56:32 +02:00
|
|
|
|
2019-04-18 14:28:45 +02:00
|
|
|
buildInputs = [
|
|
|
|
dbus-glib
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
libXext
|
|
|
|
libXxf86vm
|
|
|
|
systemd
|
|
|
|
];
|
2015-08-20 08:56:32 +02:00
|
|
|
|
2019-04-18 14:28:45 +02:00
|
|
|
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"
|
|
|
|
];
|
2016-12-18 18:20:29 +01:00
|
|
|
|
2019-04-22 01:32:15 +02:00
|
|
|
postInstall = ''
|
|
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
2019-12-23 00:19:30 +01:00
|
|
|
passthru = {
|
2020-07-29 18:33:39 +02:00
|
|
|
updateScript = nix-update-script {
|
2019-12-23 00:19:30 +01:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/the-cavalry/light-locker";
|
2016-12-18 19:33:13 +01:00
|
|
|
description = "A simple session-locker for LightDM";
|
2015-08-20 08:56:32 +02:00
|
|
|
longDescription = ''
|
2016-12-18 19:33:13 +01: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 08:56:32 +02:00
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
2019-04-18 14:28:45 +02:00
|
|
|
maintainers = with maintainers; [ obadz ] ++ pantheon.maintainers;
|
2015-08-20 08:56:32 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|