1 { stdenv, lib, fetchFromGitLab, pkg-config, yaml-cpp, libevdev }:
3 stdenv.mkDerivation rec {
4 pname = "dual-function-keys";
7 src = fetchFromGitLab {
8 group = "interception";
9 owner = "linux/plugins";
12 hash = "sha256-m/oEczUNKqj0gs/zMOIBxoQaffNg+YyPINMXArkATJ4=";
15 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ libevdev yaml-cpp ];
20 substituteInPlace config.mk --replace \
21 '/usr/include/libevdev-1.0' \
22 "$(pkg-config --cflags libevdev | cut -c 3-)"
25 installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
28 homepage = "https://gitlab.com/interception/linux/plugins/dual-function-keys";
29 description = "Tap for one key, hold for another";
30 license = licenses.mit;
31 maintainers = with maintainers; [ svend ];
32 platforms = platforms.linux;
33 mainProgram = "dual-function-keys";