freerdp: add nocaps option that turns Caps Lock into Control

This commit is contained in:
Elmo Todurov 2019-05-22 09:26:15 +03:00
parent e8f468c994
commit 52208c3b98

View file

@ -9,6 +9,7 @@
, pcsclite ? null
, systemd ? null
, buildServer ? true
, nocaps ? false
}:
stdenv.mkDerivation rec {
@ -31,6 +32,9 @@ stdenv.mkDerivation rec {
'' + lib.optionalString (pcsclite != null) ''
substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
--replace "libpcsclite.so" "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so"
'' + lib.optionalString nocaps ''
substituteInPlace "libfreerdp/locale/keyboard_xkbfile.c" \
--replace "RDP_SCANCODE_CAPSLOCK" "RDP_SCANCODE_LCONTROL"
'';
buildInputs = with lib; [