depot/third_party/nixpkgs/pkgs/tools/inputmethods/interception-tools/dual-function-keys.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

32 lines
889 B
Nix

{ stdenv, lib, 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 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;
};
}