lol
1{ fetchCrate
2, installShellFiles
3, lib
4, libbsd
5, pkg-config
6, rustPlatform
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "inputplug";
11 version = "0.4.0";
12
13 src = fetchCrate {
14 inherit pname version;
15 sha256 = "00gv2i2pxy56l6ysslbscxinr4r0mpk9p2ivkrnjnwhc8j3v8v7h";
16 };
17
18 nativeBuildInputs = [ installShellFiles pkg-config ];
19
20 buildInputs = [ libbsd ];
21
22 cargoSha256 = "161kz47d4psfvh0vm98k8qappg50lpsw1ybyy7s3g3bp6ivfz8jv";
23
24 postInstall = ''
25 installManPage inputplug.1
26 '';
27
28 meta = with lib; {
29 description = "Monitor XInput events and run arbitrary scripts on hierarchy change events";
30 homepage = "https://github.com/andrewshadura/inputplug";
31 license = licenses.mit;
32 maintainers = with maintainers; [ jecaro ];
33 };
34}
35