depot/third_party/nixpkgs/pkgs/development/libraries/fbthrift/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

70 lines
1.1 KiB
Nix

{ stdenv
, fetchFromGitHub
, cmake
, bison
, boost
, libevent
, double-conversion
, libsodium
, fizz
, flex
, fmt_8
, folly
, glog
, gflags
, libiberty
, mvfst
, openssl
, lib
, wangle
, zlib
, zstd
}:
stdenv.mkDerivation rec {
pname = "fbthrift";
version = "2024.01.22.00";
src = fetchFromGitHub {
owner = "facebook";
repo = "fbthrift";
rev = "v${version}";
sha256 = "sha256-vIYXX4NOs2JdhrAJKmIhf4+hQEXHue2Ok7e4cw6yups=";
};
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
mvfst
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 ];
};
}