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