Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
115 lines
2.0 KiB
Nix
115 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
ninja,
|
|
|
|
folly,
|
|
fizz,
|
|
openssl,
|
|
glog,
|
|
gflags,
|
|
libevent,
|
|
double-conversion,
|
|
|
|
ctestCheckHook,
|
|
|
|
gtest,
|
|
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wangle";
|
|
version = "2025.09.15.00";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "wangle";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-S2L3ifQTwyidz3x5pPrVEGEJXvM1czqTRXYsYUqIeRY=";
|
|
};
|
|
|
|
patches = [
|
|
./glog-0.7.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
folly
|
|
fizz
|
|
openssl
|
|
glog
|
|
gflags
|
|
libevent
|
|
double-conversion
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
ctestCheckHook
|
|
];
|
|
|
|
checkInputs = [
|
|
gtest
|
|
];
|
|
|
|
cmakeDir = "../wangle";
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
|
|
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
|
|
(lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include")
|
|
(lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib")
|
|
(lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/wangle")
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
doCheck = true;
|
|
|
|
dontUseNinjaCheck = true;
|
|
|
|
disabledTests = [
|
|
# Deterministic glibc abort 🫠
|
|
"BootstrapTest"
|
|
"BroadcastPoolTest"
|
|
|
|
# SSLContextManagerTest uses 15+ GB of RAM
|
|
"SSLContextManagerTest"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Open-source C++ networking library";
|
|
longDescription = ''
|
|
Wangle is a framework providing a set of common client/server
|
|
abstractions for building services in a consistent, modular, and
|
|
composable way.
|
|
'';
|
|
homepage = "https://github.com/facebook/wangle";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [
|
|
pierreis
|
|
kylesferrazza
|
|
emily
|
|
techknowlogick
|
|
];
|
|
};
|
|
})
|