From 9d5724088a8739c997f451a90eba95cc8a43f310 Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Mon, 7 Aug 2023 15:26:58 +0300 Subject: [PATCH] keymapper: init at 2.6.2 --- pkgs/tools/inputmethods/keymapper/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/tools/inputmethods/keymapper/default.nix diff --git a/pkgs/tools/inputmethods/keymapper/default.nix b/pkgs/tools/inputmethods/keymapper/default.nix new file mode 100644 index 000000000000..c1868d819ba6 --- /dev/null +++ b/pkgs/tools/inputmethods/keymapper/default.nix @@ -0,0 +1,44 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, dbus +, libX11 +, libusb1 +, pkg-config +, udev +, wayland +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "keymapper"; + version = "2.6.2"; + + src = fetchFromGitHub { + owner = "houmain"; + repo = "keymapper"; + rev = finalAttrs.version; + hash = "sha256-XCrEM9TR2nxw1GjkpDzXl4eYXu8peaJAIYXRCltSCj4="; + }; + + # all the following must be in nativeBuildInputs + nativeBuildInputs = [ + cmake + pkg-config + dbus + wayland + libX11 + udev + libusb1 + ]; + + meta = { + changelog = "https://github.com/houmain/keymapper/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + description = "A cross-platform context-aware key remapper"; + homepage = "https://github.com/houmain/keymapper"; + license = lib.licenses.gpl3Only; + mainProgram = "keymapper"; + maintainers = with lib.maintainers; [ dit7ya ]; + platforms = lib.platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ead406f346d..93239a1ec2a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6773,6 +6773,8 @@ with pkgs; keyd = callPackage ../tools/inputmethods/keyd { }; + keymapper = callPackage ../tools/inputmethods/keymapper { }; + twitch-tui = callPackage ../applications/networking/instant-messengers/twitch-tui { inherit (darwin.apple_sdk.frameworks) Security; };