nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 964 B view raw
1{ 2 fetchCrate, 3 installShellFiles, 4 lib, 5 libbsd, 6 pkg-config, 7 rustPlatform, 8 stdenv, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "inputplug"; 13 version = "0.4.0"; 14 15 src = fetchCrate { 16 inherit pname version; 17 hash = "sha256-8Gy0h0QMcittnjuKm+atIJNsY2d6Ua29oab4fkUU+wE="; 18 }; 19 20 nativeBuildInputs = [ 21 installShellFiles 22 pkg-config 23 ]; 24 25 buildInputs = [ libbsd ]; 26 27 cargoHash = "sha256-+GbbCAdEkxhyQoe8g4me2jlsuHx4R5vibd2PQLmqNM4="; 28 29 postInstall = '' 30 installManPage inputplug.1 31 ''; 32 33 meta = { 34 description = "Monitor XInput events and run arbitrary scripts on hierarchy change events"; 35 homepage = "https://github.com/andrewshadura/inputplug"; 36 license = lib.licenses.mit; 37 platforms = lib.platforms.unix; 38 # `daemon(3)` is deprecated on macOS and `pidfile-rs` needs updating 39 broken = stdenv.hostPlatform.isDarwin; 40 maintainers = with lib.maintainers; [ jecaro ]; 41 mainProgram = "inputplug"; 42 }; 43}