freerdp: work around pkgconfig limitation
Fixes weston build against freerdp2 Closes https://github.com/NixOS/nixpkgs/pull/18556
This commit is contained in:
parent
a61af52bae
commit
3e20ba60a1
|
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q";
|
sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace "libfreerdp/freerdp.pc.in" --replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
|
||||||
|
'';
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
] ++ stdenv.lib.optional (pcsclite != null)
|
] ++ stdenv.lib.optional (pcsclite != null)
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
|
@ -38,7 +42,6 @@ stdenv.mkDerivation rec {
|
||||||
++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON"
|
++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON"
|
||||||
++ stdenv.lib.optional optimize "-DWITH_SSE2=ON";
|
++ stdenv.lib.optional optimize "-DWITH_SSE2=ON";
|
||||||
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A Remote Desktop Protocol Client";
|
description = "A Remote Desktop Protocol Client";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in New Issue