Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 36 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, pkg-config, perl, systemd }: 2 3stdenv.mkDerivation rec { 4 pname = "triggerhappy"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "wertarbyte"; 9 repo = "triggerhappy"; 10 rev = "release/${version}"; 11 sha256 = "0gb1qhrxwq7i5abd408d01a2dpf28nr1fph1fg7w7n0i5i1nnk90"; 12 }; 13 14 nativeBuildInputs = [ pkg-config perl ]; 15 buildInputs = [ systemd ]; 16 17 makeFlags = [ "PREFIX=$(out)" "BINDIR=$(out)/bin" ]; 18 19 postInstall = '' 20 install -D -m 644 -t "$out/etc/triggerhappy/triggers.d" "triggerhappy.conf.examples" 21 ''; 22 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; [ taha ]; 35 }; 36}