Merge pull request #94097 from svend/dual-function-keys

authored by

Sandro and committed by
GitHub
7de82fbe 101d4284

+39
+6
maintainers/maintainer-list.nix
··· 8751 8751 githubId = 1040871; 8752 8752 name = "Mathis Antony"; 8753 8753 }; 8754 + svend = { 8755 + email = "svend@svends.net"; 8756 + github = "svend"; 8757 + githubId = 306190; 8758 + name = "Svend Sorensen"; 8759 + }; 8754 8760 svrana = { 8755 8761 email = "shaw@vranix.com"; 8756 8762 github = "svrana";
+32
pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix
··· 1 + { stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "dual-function-keys"; 5 + version = "1.1.0"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "interception/linux/plugins"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "07hksca4g7v4zsvhmhc9j725j3n63fzrkx9sb4a0wrd7rwgr25rz"; 12 + }; 13 + 14 + nativeBuildInputs = [ pkg-config ]; 15 + buildInputs = [ libevdev libyamlcpp ]; 16 + 17 + prePatch = '' 18 + substituteInPlace config.mk --replace \ 19 + '/usr/include/libevdev-1.0' \ 20 + "$(pkg-config --cflags libevdev | cut -c 3-)" 21 + ''; 22 + 23 + installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; 24 + 25 + meta = with lib; { 26 + homepage = "https://gitlab.com/interception/linux/plugins/dual-function-keys"; 27 + description = "Tap for one key, hold for another."; 28 + license = licenses.mit; 29 + maintainers = with maintainers; [ svend ]; 30 + platforms = platforms.linux; 31 + }; 32 + }
+1
pkgs/top-level/all-packages.nix
··· 3211 3211 interception-tools = callPackage ../tools/inputmethods/interception-tools { }; 3212 3212 interception-tools-plugins = { 3213 3213 caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { }; 3214 + dual-function-keys = callPackage ../tools/inputmethods/interception-tools/dual-function-keys.nix { }; 3214 3215 }; 3215 3216 3216 3217 age = callPackage ../tools/security/age { };