Merge pull request #134949 from jecaro/add-inputplug
This commit is contained in:
commit
545fc025a9
|
@ -4943,6 +4943,12 @@
|
||||||
github = "jduan";
|
github = "jduan";
|
||||||
githubId = 452450;
|
githubId = 452450;
|
||||||
};
|
};
|
||||||
|
jecaro = {
|
||||||
|
email = "jeancharles.quillet@gmail.com";
|
||||||
|
github = "jecaro";
|
||||||
|
githubId = 17029738;
|
||||||
|
name = "Jean-Charles Quillet";
|
||||||
|
};
|
||||||
jefdaj = {
|
jefdaj = {
|
||||||
email = "jefdaj@gmail.com";
|
email = "jefdaj@gmail.com";
|
||||||
github = "jefdaj";
|
github = "jefdaj";
|
||||||
|
|
35
pkgs/tools/X11/inputplug/default.nix
Normal file
35
pkgs/tools/X11/inputplug/default.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -25342,6 +25342,8 @@ with pkgs;
|
||||||
|
|
||||||
inspectrum = callPackage ../applications/radio/inspectrum { };
|
inspectrum = callPackage ../applications/radio/inspectrum { };
|
||||||
|
|
||||||
|
inputplug = callPackage ../tools/X11/inputplug { };
|
||||||
|
|
||||||
ion3 = callPackage ../applications/window-managers/ion-3 {
|
ion3 = callPackage ../applications/window-managers/ion-3 {
|
||||||
lua = lua5_1;
|
lua = lua5_1;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue