19 stdenv.mkDerivation (finalAttrs: {
21 version = "2024.03.11.00";
23 src = fetchFromGitHub {
26 rev = "v${finalAttrs.version}";
27 sha256 = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo=";
30 nativeBuildInputs = [ cmake ];
32 cmakeDir = "../wangle";
36 (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
37 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
38 "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
61 # these depend on example pem files from the folly source tree (?)
62 "SSLContextManagerTest.TestSingleClientCAFileSet"
63 "SSLContextManagerTest.TestMultipleClientCAsSet"
65 # https://github.com/facebook/wangle/issues/206
66 "SSLContextManagerTest.TestSessionContextCertRemoval"
67 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
69 "BroadcastPoolTest.ThreadLocalPool"
70 "Bootstrap.UDPClientServerTest"
73 export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}"
77 description = "Open-source C++ networking library";
79 Wangle is a framework providing a set of common client/server
80 abstractions for building services in a consistent, modular, and
83 homepage = "https://github.com/facebook/wangle";
84 license = licenses.asl20;
85 platforms = platforms.unix;
86 maintainers = with maintainers; [ pierreis kylesferrazza ];