depot/third_party/nixpkgs/pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
904 B
Nix

{ stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }:
stdenv.mkDerivation rec {
pname = "dual-function-keys";
version = "1.4.0";
src = fetchFromGitLab {
group = "interception";
owner = "linux/plugins";
repo = pname;
rev = version;
sha256 = "sha256-xlplbkeptXMBlRnSsc5NgGJfT8aoZxTRgTwTOd7aiWg=";
};
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 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;
};
}