diff options
author | jecaro <jeancharles.quillet@gmail.com> | 2021-08-21 20:42:02 +0200 |
---|---|---|
committer | jecaro <jeancharles.quillet@gmail.com> | 2021-08-21 20:42:02 +0200 |
commit | de85b9bb8f932d333621b7e88939d8188c4f354e (patch) | |
tree | beb13bfc35efc829fb14d7d30bded406719a1215 /pkgs/tools/X11 | |
parent | 364a9a0ed650d5aa1f8494ebba7cc202bef7b00b (diff) |
inputplug: init at 0.4.0
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/inputplug/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/X11/inputplug/default.nix b/pkgs/tools/X11/inputplug/default.nix new file mode 100644 index 0000000000000..031b73994b62d --- /dev/null +++ b/pkgs/tools/X11/inputplug/default.nix @@ -0,0 +1,35 @@ +{ fetchCrate +, installShellFiles +, lib +, libbsd +, pkg-config +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "inputplug"; + version = "0.4.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "00gv2i2pxy56l6ysslbscxinr4r0mpk9p2ivkrnjnwhc8j3v8v7h"; + }; + + nativeBuildInputs = [ installShellFiles pkg-config ]; + + buildInputs = [ libbsd ]; + + cargoSha256 = "161kz47d4psfvh0vm98k8qappg50lpsw1ybyy7s3g3bp6ivfz8jv"; + + postInstall = '' + installManPage inputplug.1 + ''; + + meta = with lib; { + description = "Monitor XInput events and run arbitrary scripts on hierarchy change events"; + homepage = "https://github.com/andrewshadura/inputplug"; + license = licenses.mit; + maintainers = with maintainers; [ jecaro ]; + }; +} + |