10 rustPlatform.buildRustPackage rec {
15 inherit pname version;
16 hash = "sha256-8Gy0h0QMcittnjuKm+atIJNsY2d6Ua29oab4fkUU+wE=";
19 nativeBuildInputs = [ installShellFiles pkg-config ];
21 buildInputs = [ libbsd ];
23 cargoHash = "sha256-W6LvdjR3jTf08X75wPWloLx7FUYTpboB3E5f0g75M5g=";
26 installManPage inputplug.1
30 description = "Monitor XInput events and run arbitrary scripts on hierarchy change events";
31 homepage = "https://github.com/andrewshadura/inputplug";
32 license = licenses.mit;
33 platforms = platforms.unix;
34 # `daemon(3)` is deprecated on macOS and `pidfile-rs` needs updating
35 broken = stdenv.hostPlatform.isDarwin;
36 maintainers = with maintainers; [ jecaro ];
37 mainProgram = "inputplug";