1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/tools/X11/inputplug/default.nix

36 lines
762 B
Nix
Raw Normal View History

2021-08-21 19:42:02 +01:00
{ 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 ];
};
}