From 364a9a0ed650d5aa1f8494ebba7cc202bef7b00b Mon Sep 17 00:00:00 2001 From: jecaro Date: Sat, 21 Aug 2021 14:07:49 +0200 Subject: [PATCH 1/2] maintainers: add jecaro --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 01ed4542277..c12d11575a6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4927,6 +4927,12 @@ github = "jduan"; githubId = 452450; }; + jecaro = { + email = "jeancharles.quillet@gmail.com"; + github = "jecaro"; + githubId = 17029738; + name = "Jean-Charles Quillet"; + }; jefdaj = { email = "jefdaj@gmail.com"; github = "jefdaj"; From de85b9bb8f932d333621b7e88939d8188c4f354e Mon Sep 17 00:00:00 2001 From: jecaro Date: Sat, 21 Aug 2021 20:42:02 +0200 Subject: [PATCH 2/2] inputplug: init at 0.4.0 --- pkgs/tools/X11/inputplug/default.nix | 35 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/X11/inputplug/default.nix diff --git a/pkgs/tools/X11/inputplug/default.nix b/pkgs/tools/X11/inputplug/default.nix new file mode 100644 index 00000000000..031b73994b6 --- /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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25877437bd3..ba2739c316e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25322,6 +25322,8 @@ with pkgs; inspectrum = callPackage ../applications/radio/inspectrum { }; + inputplug = callPackage ../tools/X11/inputplug { }; + ion3 = callPackage ../applications/window-managers/ion-3 { lua = lua5_1; };