dual-function-keys: init at 1.1.0
This commit is contained in:
parent
817cca7ef9
commit
802ec1b556
2 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, 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 stdenv.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;
|
||||
};
|
||||
}
|
|
@ -3118,6 +3118,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 { };
|
||||
|
|
Loading…
Reference in a new issue