nixpkgs/pkgs/development/libraries/fb303/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, cmake
, fbthrift
, fizz
2024-01-29 22:55:30 +00:00
, folly
, glog
, libsodium
2024-01-29 22:55:30 +00:00
, mvfst
, python3
2024-01-29 22:55:30 +00:00
, wangle
, zlib
}:
stdenv.mkDerivation rec {
pname = "fb303";
2024-03-13 17:44:51 +00:00
version = "2024.03.11.00";
src = fetchFromGitHub {
owner = "facebook";
repo = "fb303";
rev = "v${version}";
2024-03-13 17:44:51 +00:00
sha256 = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DPYTHON_EXTENSIONS=OFF"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
];
buildInputs = [
fbthrift
fizz
2024-01-29 22:55:30 +00:00
folly
folly.boost
folly.fmt
glog
libsodium
2024-01-29 22:55:30 +00:00
mvfst
python3
2024-01-29 22:55:30 +00:00
wangle
zlib
];
meta = with lib; {
description = "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 ];
};
}