2021-01-19 03:30:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }:
|
2020-07-26 18:18:15 +01:00
|
|
|
|
|
|
|
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=" ];
|
|
|
|
|
2021-01-19 03:30:22 +00:00
|
|
|
meta = with lib; {
|
2020-07-26 18:18:15 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|