Skip to content

Commit 7e63c97

Browse files
authored
folly: 2019.11.11.00 -> 2020.09.28.00, fix build (#99133)
1 parent df4d0b0 commit 7e63c97

1 file changed

Lines changed: 35 additions & 8 deletions

File tree

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
1-
{ stdenv, fetchFromGitHub, cmake, boost, libevent, double-conversion, glog
2-
, gflags, libiberty, openssl }:
1+
{ stdenv
2+
, fetchFromGitHub
3+
, cmake
4+
, boost
5+
, libevent
6+
, double-conversion
7+
, glog
8+
, gflags
9+
, libiberty
10+
, lz4
11+
, lzma
12+
, zlib
13+
, jemalloc
14+
, openssl
15+
, pkg-config
16+
, libunwind
17+
, fmt
18+
}:
319

4-
stdenv.mkDerivation rec {
20+
stdenv.mkDerivation (rec {
521
pname = "folly";
6-
version = "2019.11.11.00";
22+
version = "2020.09.28.00";
723

824
src = fetchFromGitHub {
925
owner = "facebook";
1026
repo = "folly";
1127
rev = "v${version}";
12-
sha256 = "1sgv7sdalbs7zhz3zcc95gn2h8j2xjf7hkw2c618zc3pdn6aa58w";
28+
sha256 = "1ry2nqfavcbz0jvsqw71105gbxm5hpmdi2k1w155m957jrv3n5vg";
1329
};
1430

15-
nativeBuildInputs = [ cmake ];
31+
nativeBuildInputs = [
32+
cmake
33+
pkg-config
34+
];
1635

1736
# See CMake/folly-deps.cmake in the Folly source tree.
1837
buildInputs = [
@@ -23,9 +42,15 @@ stdenv.mkDerivation rec {
2342
libevent
2443
libiberty
2544
openssl
45+
lz4
46+
lzma
47+
zlib
48+
jemalloc
49+
libunwind
50+
fmt
2651
];
2752

28-
enableParallelBuilding = true;
53+
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
2954

3055
meta = with stdenv.lib; {
3156
description = "An open-source C++ library developed and used at Facebook";
@@ -35,4 +60,6 @@ stdenv.mkDerivation rec {
3560
platforms = [ "x86_64-linux" "x86_64-darwin" ];
3661
maintainers = with maintainers; [ abbradar pierreis ];
3762
};
38-
}
63+
} // stdenv.lib.optionalAttrs stdenv.isDarwin {
64+
LDFLAGS = "-ljemalloc";
65+
})

0 commit comments

Comments
 (0)