git.iko.soy/typeable/nixpkgs
on master help sign in
dual-function-keys: init at 1.1.0
commit802ec1b556a1c54a5252bfed200c8a4424f430a6 authorSvend Sorensen <svend@svends.net> dateSun 26 Jul 2020, 10:18 (6 years ago) parent817cca7
2 files changed+33
pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix+32 pkgs/top-level/all-packages.nix+1
pkgs/tools/inputmethods/interception-tools/dual-function-keys.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, 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 stdenv.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
@@ -3118,6 +3118,7 @@ in
31183118 interception-tools = callPackage ../tools/inputmethods/interception-tools { };
31193119 interception-tools-plugins = {
31203120 caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { };
3121+ dual-function-keys = callPackage ../tools/inputmethods/interception-tools/dual-function-keys.nix { };
31213122 };
31223123
31233124 age = callPackage ../tools/security/age { };