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

This commit is contained in:
Sandro 2021-01-19 13:41:19 +01:00 committed by GitHub
commit 7de82fbe61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View File

@ -8751,6 +8751,12 @@
githubId = 1040871;
name = "Mathis Antony";
};
svend = {
email = "svend@svends.net";
github = "svend";
githubId = 306190;
name = "Svend Sorensen";
};
svrana = {
email = "shaw@vranix.com";
github = "svrana";

View File

@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }:
stdenv.mkDerivation rec {
pname = "dual-function-keys";
version = "1.1.0";
src = fetchFromGitLab {
owner = "interception/linux/plugins";
repo = pname;
rev = version;
sha256 = "07hksca4g7v4zsvhmhc9j725j3n63fzrkx9sb4a0wrd7rwgr25rz";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libevdev libyamlcpp ];
prePatch = ''
substituteInPlace config.mk --replace \
'/usr/include/libevdev-1.0' \
"$(pkg-config --cflags libevdev | cut -c 3-)"
'';
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = with lib; {
homepage = "https://gitlab.com/interception/linux/plugins/dual-function-keys";
description = "Tap for one key, hold for another.";
license = licenses.mit;
maintainers = with maintainers; [ svend ];
platforms = platforms.linux;
};
}

View File

@ -3211,6 +3211,7 @@ in
interception-tools = callPackage ../tools/inputmethods/interception-tools { };
interception-tools-plugins = {
caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { };
dual-function-keys = callPackage ../tools/inputmethods/interception-tools/dual-function-keys.nix { };
};
age = callPackage ../tools/security/age { };