freerdp: work around pkgconfig limitation

Fixes weston build against freerdp2

Closes https://github.com/NixOS/nixpkgs/pull/18556

authored by Alexander Ried and committed by Joachim Fasting 3e20ba60 a61af52b

+4 -1
+4 -1
pkgs/applications/networking/remote/freerdp/unstable.nix
··· 15 sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q"; 16 }; 17 18 patches = [ 19 ] ++ stdenv.lib.optional (pcsclite != null) 20 (substituteAll { ··· 37 ++ stdenv.lib.optional (pcsclite != null) "-DWITH_PCSC=ON" 38 ++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON" 39 ++ stdenv.lib.optional optimize "-DWITH_SSE2=ON"; 40 - 41 42 meta = with stdenv.lib; { 43 description = "A Remote Desktop Protocol Client";
··· 15 sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q"; 16 }; 17 18 + prePatch = '' 19 + substituteInPlace "libfreerdp/freerdp.pc.in" --replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@" 20 + ''; 21 + 22 patches = [ 23 ] ++ stdenv.lib.optional (pcsclite != null) 24 (substituteAll { ··· 41 ++ stdenv.lib.optional (pcsclite != null) "-DWITH_PCSC=ON" 42 ++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON" 43 ++ stdenv.lib.optional optimize "-DWITH_SSE2=ON"; 44 45 meta = with stdenv.lib; { 46 description = "A Remote Desktop Protocol Client";