about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2016-09-13 15:31:37 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-09-17 13:54:36 +0200
commit3e20ba60a1aaa72479f68166bd1acf20fd6eb564 (patch)
treed3af31b102b592e038c69f39d79e2b27705f6653 /pkgs/applications/networking/remote
parenta61af52bae55f917bdbbefa9f47a5702ccbcbe46 (diff)
freerdp: work around pkgconfig limitation
Fixes weston build against freerdp2

Closes https://github.com/NixOS/nixpkgs/pull/18556
Diffstat (limited to 'pkgs/applications/networking/remote')
-rw-r--r--pkgs/applications/networking/remote/freerdp/unstable.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/remote/freerdp/unstable.nix b/pkgs/applications/networking/remote/freerdp/unstable.nix
index cba5488e1a450..5483e9420761a 100644
--- a/pkgs/applications/networking/remote/freerdp/unstable.nix
+++ b/pkgs/applications/networking/remote/freerdp/unstable.nix
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
     sha256 = "1lydkh6by0sjy6dl57bzg7c11ccyp24s80pwxw9h5kmxkbw6mx5q";
   };
 
+  prePatch = ''
+    substituteInPlace "libfreerdp/freerdp.pc.in" --replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
+  '';
+
   patches = [
   ] ++ stdenv.lib.optional (pcsclite != null)
       (substituteAll {
@@ -38,7 +42,6 @@ stdenv.mkDerivation rec {
     ++ stdenv.lib.optional buildServer "-DWITH_SERVER=ON"
     ++ stdenv.lib.optional optimize "-DWITH_SSE2=ON";
 
-
   meta = with stdenv.lib; {
     description = "A Remote Desktop Protocol Client";
     longDescription = ''