git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #94097 from svend/dual-function-keys
commit7de82fbe61b3fd1854fc4a89a1ab4ed6fad812e3 authorSandro <sandro.jaeckel@gmail.com> dateTue 19 Jan 2021, 13:41 (6 years ago) parent101d428ea7e4b3
3 files changed+39
maintainers/maintainer-list.nix+6 pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix+32 pkgs/top-level/all-packages.nix+1
maintainers/maintainer-list.nix+6
@@ -8751,6 +8751,12 @@
87518751 githubId = 1040871;
87528752 name = "Mathis Antony";
87538753 };
8754+ svend = {
8755+ email = "svend@svends.net";
8756+ github = "svend";
8757+ githubId = 306190;
8758+ name = "Svend Sorensen";
8759+ };
87548760 svrana = {
87558761 email = "shaw@vranix.com";
87568762 github = "svrana";
pkgs/tools/inputmethods/interception-tools/dual-function-keys.nixnew file+32
@@ -0,0 +1,32 @@
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+}
pkgs/top-level/all-packages.nix+1
@@ -3211,6 +3211,7 @@ in
32113211 interception-tools = callPackage ../tools/inputmethods/interception-tools { };
32123212 interception-tools-plugins = {
32133213 caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { };
3214+ dual-function-keys = callPackage ../tools/inputmethods/interception-tools/dual-function-keys.nix { };
32143215 };
32153216
32163217 age = callPackage ../tools/security/age { };