mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 08:38:18 +03:00
folly: 2021.10.25.00 -> 2022.02.07.00
This commit is contained in:
parent
6c7fd66b5b
commit
2c30bcd1b1
@ -1,31 +1,33 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, boost
|
||||
, libevent
|
||||
, cmake
|
||||
, double-conversion
|
||||
, glog
|
||||
, fetchpatch
|
||||
, fmt_8
|
||||
, gflags
|
||||
, glog
|
||||
, libevent
|
||||
, libiberty
|
||||
, libunwind
|
||||
, lz4
|
||||
, xz
|
||||
, zlib
|
||||
, jemalloc
|
||||
, openssl
|
||||
, pkg-config
|
||||
, libunwind
|
||||
, fmt
|
||||
, xz
|
||||
, zlib
|
||||
, zstd
|
||||
, follyMobile ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "folly";
|
||||
version = "2021.10.25.00";
|
||||
version = "2022.02.07.00";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = "folly";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-+di8Dzt5NRbqIydBR4sB6bUbQrZZ8URUosdP2JGQMec=";
|
||||
sha256 = "sha256-C/PQBXhOELNxQFfQhgQeU+QmsdtFeBESyWerC+QZBEI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -45,11 +47,12 @@ stdenv.mkDerivation (rec {
|
||||
lz4
|
||||
xz
|
||||
zlib
|
||||
jemalloc
|
||||
libunwind
|
||||
fmt
|
||||
fmt_8
|
||||
zstd
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" ];
|
||||
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
||||
|
||||
meta = with lib; {
|
||||
@ -57,9 +60,7 @@ stdenv.mkDerivation (rec {
|
||||
homepage = "https://github.com/facebook/folly";
|
||||
license = licenses.asl20;
|
||||
# 32bit is not supported: https://github.com/facebook/folly/issues/103
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
maintainers = with maintainers; [ abbradar pierreis ];
|
||||
};
|
||||
} // lib.optionalAttrs stdenv.isDarwin {
|
||||
LDFLAGS = "-ljemalloc";
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user