summary refs log tree commit diff
path: root/pkgs/misc/screensavers/xssproxy/default.nix
blob: a278e6dc949f62996183d4ca03f271cc1cda733c (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
{ stdenv, fetchFromGitHub, glib, pkgconfig, xorg, dbus }:

let rev = "1.0.0"; in

stdenv.mkDerivation {
  name = "xssproxy-${rev}";

  src = fetchFromGitHub {
    owner = "timakro";
    repo = "xssproxy";
    rev = "v${rev}";
    sha256 = "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ glib xorg.libX11 xorg.libXScrnSaver dbus ];

  makeFlags = [
    "bindir=$(out)/bin"
    "man1dir=$(out)/share/man/man1"
  ];

  meta = {
    description = "Forward freedesktop.org Idle Inhibition Service calls to Xss";
    homepage = https://github.com/timakro/xssproxy;
    license = stdenv.lib.licenses.gpl3;
    maintainers = with stdenv.lib.maintainers; [ benley ];
    platforms = stdenv.lib.platforms.unix;
  };
}