python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / inputmethods / triggerhappy / default.nix
blobe7ef0f8accf147ead5deba69ef52e8c46e947e79
1 { lib, stdenv, fetchFromGitHub, pkg-config, perl, systemd }:
3 stdenv.mkDerivation rec {
4   pname = "triggerhappy";
5   version = "0.5.0";
7   src = fetchFromGitHub {
8     owner = "wertarbyte";
9     repo = "triggerhappy";
10     rev = "release/${version}";
11     sha256 = "0gb1qhrxwq7i5abd408d01a2dpf28nr1fph1fg7w7n0i5i1nnk90";
12   };
14   nativeBuildInputs = [ pkg-config perl ];
15   buildInputs = [ systemd ];
17   makeFlags = [ "PREFIX=$(out)" "BINDIR=$(out)/bin" ];
19   postInstall = ''
20     install -D -m 644 -t "$out/etc/triggerhappy/triggers.d" "triggerhappy.conf.examples"
21   '';
23   meta = with lib; {
24     description = "A lightweight hotkey daemon";
25     longDescription = ''
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
29       configuration.
30     '';
31     homepage = "https://github.com/wertarbyte/triggerhappy/";
32     license = licenses.gpl3Plus;
33     platforms = platforms.linux;
34     maintainers = with maintainers; [ jfrankenau taha ];
35   };