@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
1515 sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q";
1616 };
1717
18+ prePatch = ''
19+ substituteInPlace "libfreerdp/freerdp.pc.in" --replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
20+ '';
21+
1822 patches = [
1923 ] ++ stdenv.lib.optional (pcsclite != null)
2024 (substituteAll {
@@ -38,7 +42,6 @@ stdenv.mkDerivation rec {
3842 ++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON"
3943 ++ stdenv.lib.optional optimize "-DWITH_SSE2=ON";
4044
41−
4245 meta = with stdenv.lib; {
4346 description = "A Remote Desktop Protocol Client";
4447 longDescription = ''