mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
fizz: format with nixfmt-rfc-style
This commit is contained in:
parent
c71ed296d7
commit
95d28ae657
@ -1,18 +1,19 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, libevent
|
||||
, double-conversion
|
||||
, glog
|
||||
, lib
|
||||
, zstd
|
||||
, gflags
|
||||
, libiberty
|
||||
, openssl
|
||||
, folly
|
||||
, libsodium
|
||||
, gtest
|
||||
, zlib
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
libevent,
|
||||
double-conversion,
|
||||
glog,
|
||||
lib,
|
||||
zstd,
|
||||
gflags,
|
||||
libiberty,
|
||||
openssl,
|
||||
folly,
|
||||
libsodium,
|
||||
gtest,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -30,12 +31,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
cmakeDir = "../fizz";
|
||||
|
||||
cmakeFlags = [
|
||||
"-Wno-dev"
|
||||
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
|
||||
];
|
||||
cmakeFlags =
|
||||
[
|
||||
"-Wno-dev"
|
||||
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
|
||||
];
|
||||
|
||||
NIX_LDFLAGS = "-lz";
|
||||
|
||||
@ -56,19 +59,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
checkInputs = [
|
||||
gtest
|
||||
];
|
||||
preCheck = let
|
||||
disabledTests = [
|
||||
# these don't work with openssl 3.x probably due to
|
||||
# https://github.com/openssl/openssl/issues/13283
|
||||
"DefaultCertificateVerifierTest.TestVerifySuccess"
|
||||
"DefaultCertificateVerifierTest.TestVerifyWithIntermediates"
|
||||
preCheck =
|
||||
let
|
||||
disabledTests = [
|
||||
# these don't work with openssl 3.x probably due to
|
||||
# https://github.com/openssl/openssl/issues/13283
|
||||
"DefaultCertificateVerifierTest.TestVerifySuccess"
|
||||
"DefaultCertificateVerifierTest.TestVerifyWithIntermediates"
|
||||
|
||||
# timing-related & flaky
|
||||
"SlidingBloomReplayCacheTest.TestTimeBucketing"
|
||||
];
|
||||
in ''
|
||||
export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}"
|
||||
'';
|
||||
# timing-related & flaky
|
||||
"SlidingBloomReplayCacheTest.TestTimeBucketing"
|
||||
];
|
||||
in
|
||||
''
|
||||
export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "C++14 implementation of the TLS-1.3 standard";
|
||||
@ -76,6 +81,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
changelog = "https://github.com/facebookincubator/fizz/releases/tag/v${finalAttrs.version}";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ pierreis kylesferrazza ];
|
||||
maintainers = with maintainers; [
|
||||
pierreis
|
||||
kylesferrazza
|
||||
];
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user