about summary refs log tree commit diff
path: root/pkgs/tools/X11/xplugd/default.nix
blob: a6d0366275fa2cd0dc47de2e1b5ec41d36ac6ac2 (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
{ lib
, stdenv
, xorg
, pkg-config
, fetchFromGitHub
, autoreconfHook
}:

stdenv.mkDerivation rec {
  pname = "xplugd";
  version = "1.4";

  src = fetchFromGitHub {
    owner = "troglobit";
    repo = "xplugd";
    rev = "v${version}";
    sha256 = "11vjr69prrs4ir9c267zwq4g9liipzrqi0kmw1zg95dbn7r7zmql";
  };

  buildInputs = with xorg; [ libX11 libXi libXrandr libXext ];
  nativeBuildInputs = [ pkg-config autoreconfHook ];

  meta = with lib; {
    homepage = "https://github.com/troglobit/xplugd";
    description = "UNIX daemon that executes a script on X input and RandR changes";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ akho ];
    mainProgram = "xplugd";
  };
}