folly: fix paths in .pc file

This commit is contained in:
Vladimír Čunát
2022-09-28 17:48:17 +02:00
parent a2a2ffbd50
commit 23b3d4fb8e
@@ -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 = {