Merge pull request #61858 from cf6b88f/freerdp-nocaps

freerdp: add nocaps option that turns Caps Lock into Control
This commit is contained in:
Peter Hoeg 2019-06-09 15:42:32 +08:00 committed by GitHub
commit 4d2bd93da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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; [