about summary refs log tree commit diff
path: root/pkgs/misc/screensavers/light-locker/default.nix
blob: 80e405d4442f97730e584d68dca9bb036e9f6d04 (plain) (blame)
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
{ stdenv
, fetchFromGitHub
, which
, xfce
, glib
, pkgconfig
, libX11
, gtk3
, dbus_glib
, systemd
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  name = "${basename}-${version}";
  basename = "light-locker";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "the-cavalry";
    repo = basename;
    rev = "v${version}";
    sha256 = "0ygkp5vgkx2nfhfql6j2jsfay394gda23ir3sx4f72j4agsirjvj";
  };

  buildInputs = [ which xfce.xfce4_dev_tools glib pkgconfig libX11 gtk3 dbus_glib systemd wrapGAppsHook ];

  preConfigure = ''
    ./autogen.sh
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/the-cavalry/light-locker;
    description = "Light-locker is a simple locker";
    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.
      It relies on lightdm for locking and unlocking your session via ConsoleKit/UPower or logind/systemd.
    '';
    license = licenses.gpl2;
    maintainers = with maintainers; [ obadz ];
    platforms = platforms.linux;
  };
}