Skip to content

Commit

Permalink
folly: expose fmt and boost libs
Browse files Browse the repository at this point in the history
This allows for people consuming these
packages to inherit the same libaries.

This is needed because the folly-config.cmake
will use `find_package` on these dependencies,
thus downstream packages should avoid potential
abi issues.
  • Loading branch information
Jonathan Ringer committed Aug 24, 2022
1 parent c2cbd5c commit 8d3fc48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/libraries/folly/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];

# folly-config.cmake, will `find_package` these, thus there should be
# a way to ensure abi compatibility.
passthru = {
inherit boost;
fmt = fmt_8;
};

meta = with lib; {
description = "An open-source C++ library developed and used at Facebook";
homepage = "https://github.com/facebook/folly";
Expand Down

0 comments on commit 8d3fc48

Please sign in to comment.