nixpkgs/pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix

35 lines
904 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }:
2020-07-26 19:18:15 +02:00
stdenv.mkDerivation rec {
pname = "dual-function-keys";
version = "1.4.0";
2020-07-26 19:18:15 +02:00
src = fetchFromGitLab {
group = "interception";
owner = "linux/plugins";
2020-07-26 19:18:15 +02:00
repo = pname;
rev = version;
sha256 = "sha256-xlplbkeptXMBlRnSsc5NgGJfT8aoZxTRgTwTOd7aiWg=";
2020-07-26 19:18:15 +02:00
};
nativeBuildInputs = [ pkg-config ];
2020-07-26 19:18:15 +02:00
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; {
2020-07-26 19:18:15 +02: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;
};
}