freerdp: add nocaps option that turns Caps Lock into Control
This commit is contained in:
parent
e8f468c994
commit
52208c3b98
@ -9,6 +9,7 @@
|
|||||||
, pcsclite ? null
|
, pcsclite ? null
|
||||||
, systemd ? null
|
, systemd ? null
|
||||||
, buildServer ? true
|
, buildServer ? true
|
||||||
|
, nocaps ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -31,6 +32,9 @@ stdenv.mkDerivation rec {
|
|||||||
'' + lib.optionalString (pcsclite != null) ''
|
'' + lib.optionalString (pcsclite != null) ''
|
||||||
substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
|
substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
|
||||||
--replace "libpcsclite.so" "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so"
|
--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; [
|
buildInputs = with lib; [
|
||||||
|
Loading…
Reference in New Issue
Block a user