Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
970 B · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ stdenv, lib, fetchFromGitLab, pkg-config, yaml-cpp, libevdev,}:
stdenv.mkDerivation rec { pname = "dual-function-keys"; version = "1.5.0";
src = fetchFromGitLab { group = "interception"; owner = "linux/plugins"; repo = pname; rev = version; hash = "sha256-m/oEczUNKqj0gs/zMOIBxoQaffNg+YyPINMXArkATJ4="; };
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libevdev yaml-cpp ];
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; mainProgram = "dual-function-keys"; };}