fb303: init at 2023.01.30.00
Co-authored-by: Andrew Hamon <and.ham95@gmail.com>
This commit is contained in:
55
pkgs/development/libraries/fb303/default.nix
Normal file
55
pkgs/development/libraries/fb303/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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 { };
|
||||||
|
|||||||
Reference in New Issue
Block a user