3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/light-locker/default.nix

84 lines
1.6 KiB
Nix
Raw Normal View History

2015-08-20 07:56:32 +01:00
{ stdenv
, fetchFromGitHub
, meson
, ninja
2015-08-20 07:56:32 +01:00
, pkgconfig
, gtk3
, glib
, intltool
, dbus-glib
, libX11
, libXScrnSaver
, libXxf86vm
, libXext
2015-08-20 07:56:32 +01:00
, systemd
, pantheon
2015-08-20 07:56:32 +01:00
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "light-locker";
version = "1.9.0";
outputs = [ "out" "man" ];
2015-08-20 07:56:32 +01:00
src = fetchFromGitHub {
owner = "the-cavalry";
repo = pname;
2015-08-20 07:56:32 +01:00
rev = "v${version}";
sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
2015-08-20 07:56:32 +01:00
};
nativeBuildInputs = [
intltool
meson
ninja
pkgconfig
wrapGAppsHook
];
2015-08-20 07:56:32 +01:00
buildInputs = [
dbus-glib
glib
gtk3
libX11
libXScrnSaver
libXext
libXxf86vm
systemd
];
2015-08-20 07:56:32 +01: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"
];
2019-04-22 00:32:15 +01:00
postInstall = ''
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
'';
2015-08-20 07:56:32 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/the-cavalry/light-locker;
description = "A simple session-locker for LightDM";
2015-08-20 07:56:32 +01:00
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.
2015-08-20 07:56:32 +01:00
'';
license = licenses.gpl2;
maintainers = with maintainers; [ obadz ] ++ pantheon.maintainers;
2015-08-20 07:56:32 +01:00
platforms = platforms.linux;
};
}