2023-02-16 17:41:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, bison
|
|
|
|
, boost
|
|
|
|
, libevent
|
|
|
|
, double-conversion
|
|
|
|
, libsodium
|
|
|
|
, fizz
|
|
|
|
, flex
|
|
|
|
, fmt_8
|
|
|
|
, folly
|
|
|
|
, glog
|
|
|
|
, gflags
|
|
|
|
, libiberty
|
|
|
|
, openssl
|
|
|
|
, lib
|
|
|
|
, wangle
|
|
|
|
, zlib
|
|
|
|
, zstd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fbthrift";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "2023.02.20.00";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "fbthrift";
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-MnF2JS+5kvcA6nymFWW7DTM5yWsnQR0U69lirG/CLDg=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = lib.optionals stdenv.isDarwin [
|
|
|
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
double-conversion
|
|
|
|
fizz
|
|
|
|
fmt_8
|
|
|
|
folly
|
|
|
|
glog
|
|
|
|
gflags
|
|
|
|
libevent
|
|
|
|
libiberty
|
|
|
|
openssl
|
|
|
|
wangle
|
|
|
|
zlib
|
|
|
|
zstd
|
|
|
|
libsodium
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Facebook's branch of Apache Thrift";
|
|
|
|
homepage = "https://github.com/facebook/fbthrift";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pierreis kylesferrazza ];
|
|
|
|
};
|
|
|
|
}
|