1 { lib, stdenv, fetchFromGitHub, pkg-config, perl, systemd }:
3 stdenv.mkDerivation rec {
4 pname = "triggerhappy";
7 src = fetchFromGitHub {
10 rev = "release/${version}";
11 sha256 = "0gb1qhrxwq7i5abd408d01a2dpf28nr1fph1fg7w7n0i5i1nnk90";
14 nativeBuildInputs = [ pkg-config perl ];
15 buildInputs = [ systemd ];
17 makeFlags = [ "PREFIX=$(out)" "BINDIR=$(out)/bin" ];
20 install -D -m 644 -t "$out/etc/triggerhappy/triggers.d" "triggerhappy.conf.examples"
24 description = "Lightweight hotkey daemon";
26 Triggerhappy is a hotkey daemon developed with small and embedded systems in
27 mind, e.g. linux based routers. It attaches to the input device files and
28 interprets the event data received and executes scripts configured in its
31 homepage = "https://github.com/wertarbyte/triggerhappy/";
32 license = licenses.gpl3Plus;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ taha ];