nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 32 lines 889 B view raw
1{ stdenv, lib, fetchFromGitLab, pkg-config, libyamlcpp, libevdev }: 2 3stdenv.mkDerivation rec { 4 pname = "dual-function-keys"; 5 version = "1.1.0"; 6 7 src = fetchFromGitLab { 8 owner = "interception/linux/plugins"; 9 repo = pname; 10 rev = version; 11 sha256 = "07hksca4g7v4zsvhmhc9j725j3n63fzrkx9sb4a0wrd7rwgr25rz"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ libevdev libyamlcpp ]; 16 17 prePatch = '' 18 substituteInPlace config.mk --replace \ 19 '/usr/include/libevdev-1.0' \ 20 "$(pkg-config --cflags libevdev | cut -c 3-)" 21 ''; 22 23 installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; 24 25 meta = with lib; { 26 homepage = "https://gitlab.com/interception/linux/plugins/dual-function-keys"; 27 description = "Tap for one key, hold for another."; 28 license = licenses.mit; 29 maintainers = with maintainers; [ svend ]; 30 platforms = platforms.linux; 31 }; 32}