Skip to content

Commit

Permalink
folly: fix paths in .pc file
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Sep 28, 2022
1 parent a2a2ffb commit 23b3d4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/folly/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 23b3d4f

Please sign in to comment.