From 23b3d4fb8ef995d956989e3ec13dfb5def1a88ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 28 Sep 2022 17:48:17 +0200 Subject: [PATCH] folly: fix paths in .pc file --- pkgs/development/libraries/folly/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/folly/default.nix b/pkgs/development/libraries/folly/default.nix index 0f866eeb9ec9..116d3c9ce40d 100644 --- a/pkgs/development/libraries/folly/default.nix +++ b/pkgs/development/libraries/folly/default.nix @@ -59,6 +59,12 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; + postFixup = '' + substituteInPlace "$out"/lib/pkgconfig/libfolly.pc \ + --replace '=''${prefix}//' '=/' \ + --replace '=''${exec_prefix}//' '=/' + ''; + # folly-config.cmake, will `find_package` these, thus there should be # a way to ensure abi compatibility. passthru = {