folly: fix paths in .pc file

main
Vladimír Čunát 2 years ago
parent a2a2ffbd50
commit 23b3d4fb8e
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 6
      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 = {

Loading…
Cancel
Save