diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2022-07-11 17:52:55 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-08-24 07:56:23 -0700 |
commit | 8d3fc481a4cbd2ec474ff05996b91c76ede3132e (patch) | |
tree | 5e122edb3411b04ff8ee2ee83cd005bf53ac2d1e /pkgs | |
parent | c2cbd5c98723329757d7f5ce3418676c3765c7ab (diff) |
folly: expose fmt and boost libs
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/folly/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/folly/default.nix b/pkgs/development/libraries/folly/default.nix index 69e690011b8ad..0ef5dfbc2e570 100644 --- a/pkgs/development/libraries/folly/default.nix +++ b/pkgs/development/libraries/folly/default.nix @@ -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"; |