anchor.diff:        --replace "RDP_SCANCODE_CAPSLOCK" "RDP_SCANCODE_LCONTROL"
     '';
   
  -  buildInputs = with lib;
  -    [
  -      alsa-lib
  -      cairo
  -      cups
  -      ffmpeg
  -      glib
  -      gst-plugins-base
  -      gst-plugins-good
  -      gstreamer
  -      libX11
  -      libXcursor
  -      libXdamage
  -      libXext
  -      libXi
  -      libXinerama
  -      libXrandr
  -      libXrender
  -      libXtst
  -      libXv
  -      libjpeg_turbo
  -      libpulseaudio
  -      libunwind
  -      libusb1
  -      libxkbcommon
  -      libxkbfile
  -      libxslt
  -      openssl
  -      orc
  -      pcre
  -      pcsclite
  -      wayland
  -      zlib
  -    ] ++ optional stdenv.isLinux systemd;
  +  buildInputs = [
  +    alsa-lib
  +    cairo
  +    cups
  +    ffmpeg
  +    glib
  +    gst-plugins-base
  +    gst-plugins-good
  +    gstreamer
  +    libX11
  +    libXcursor
  +    libXdamage
  +    libXext
  +    libXi
  +    libXinerama
  +    libXrandr
  +    libXrender
  +    libXtst
  +    libXv
  +    libjpeg_turbo
  +    libpulseaudio
  +    libunwind
  +    libusb1
  +    libxkbcommon
  +    libxkbfile
  +    libxslt
  +    openssl
  +    orc
  +    pcre
  +    pcsclite
  +    wayland
  +    zlib
  +  ] ++ lib.optional stdenv.isLinux systemd;
   
     nativeBuildInputs = [ cmake pkg-config ];
   
  
positive.code:     }
    ];
  
  in stdenv.mkDerivation rec {
    pname = "freerdp";
    version = "2.4.1";
  
    src = fetchFromGitHub {
      owner = "FreeRDP";
      repo = "FreeRDP";
      rev = version;
      sha256 = "sha256-0wwIuE6Gv8khhLAbWSHOBfHGrTUjR4f/C5bzYJpvWIQ=";
    };
  
    postPatch = ''
  
negative.code: { stdenv
  , lib
  , fetchFromGitHub
  , cmake
  , pkg-config
  , alsa-lib
  , ffmpeg
  , glib
  , openssl
  , pcre
  , zlib
  , libX11
  , libXcursor
  , libXdamage
  , libXext
  , libXi
  , libXinerama
  , libXrandr
  , libXrender
  , libXv
  , libXtst
  , libxkbcommon
  , libxkbfile
  , wayland
  , gstreamer
  , gst-plugins-base
  , gst-plugins-good
  , libunwind
  , orc
  , libxslt
  , cairo
  , libusb1
  , libpulseaudio
  , cups
  , pcsclite
  , systemd
  , libjpeg_turbo
  , buildServer ? true
  , nocaps ? false
  }:
  
  let
  