biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / inputmethods / interception-tools / dual-function-keys.nix
blob022e7dfa0389927762018d2e0028d7f5f6e48652
1 { stdenv, lib, fetchFromGitLab, pkg-config, yaml-cpp, libevdev }:
3 stdenv.mkDerivation rec {
4   pname = "dual-function-keys";
5   version = "1.5.0";
7   src = fetchFromGitLab {
8     group = "interception";
9     owner = "linux/plugins";
10     repo = pname;
11     rev = version;
12     hash = "sha256-m/oEczUNKqj0gs/zMOIBxoQaffNg+YyPINMXArkATJ4=";
13   };
15   nativeBuildInputs = [ pkg-config ];
17   buildInputs = [ libevdev yaml-cpp ];
19   prePatch = ''
20     substituteInPlace config.mk --replace \
21       '/usr/include/libevdev-1.0' \
22       "$(pkg-config --cflags libevdev | cut -c 3-)"
23   '';
25   installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
27   meta = with lib; {
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";
34   };