evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / tr / triggerhappy / package.nix
blobd35a6ebf072fb6c6bc4ed45e4a738ab670898700
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 = "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; [ taha ];
35   };