fb303: init at 2023.01.30.00

Co-authored-by: Andrew Hamon <and.ham95@gmail.com>
This commit is contained in:
Kyle Sferrazza
2023-01-19 00:20:20 -08:00
committed by Florian Brandes
parent 3af0ddedfe
commit d8b5c6ed10
2 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, glog
, folly
, fmt_8
, boost
, fbthrift
, zlib
, fizz
, libsodium
, wangle
, python3
}:
stdenv.mkDerivation rec {
pname = "fb303";
version = "2023.01.30.00";
src = fetchFromGitHub {
owner = "facebook";
repo = "fb303";
rev = "v${version}";
sha256 = "sha256-k0kDaiSLaGNPhgCgksAu/qM9e4ogISQaFvWq4/mZIeI=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DPYTHON_EXTENSIONS=OFF"
] ++ lib.optionals stdenv.isDarwin [
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
];
buildInputs = [
glog
folly
fmt_8
boost
fbthrift
zlib
fizz
libsodium
wangle
python3
];
meta = with lib; {
description = "a base Thrift service and a common set of functionality for querying stats, options, and other information from a service";
homepage = "https://github.com/facebook/fb303";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ kylesferrazza ];
};
}

View File

@@ -19534,6 +19534,8 @@ with pkgs;
fbthrift = callPackage ../development/libraries/fbthrift { }; fbthrift = callPackage ../development/libraries/fbthrift { };
fb303 = callPackage ../development/libraries/fb303 { };
fcgi = callPackage ../development/libraries/fcgi { }; fcgi = callPackage ../development/libraries/fcgi { };
fcl = callPackage ../development/libraries/fcl { }; fcl = callPackage ../development/libraries/fcl { };