From 95d28ae657e6cc9eb01abbfc1623138955c798ac Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:51:02 +0000 Subject: [PATCH] fizz: format with `nixfmt-rfc-style` --- pkgs/development/libraries/fizz/default.nix | 76 ++++++++++++--------- 1 file changed, 42 insertions(+), 34 deletions(-) diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/development/libraries/fizz/default.nix index d53611cdc29f..481e5ed326a0 100644 --- a/pkgs/development/libraries/fizz/default.nix +++ b/pkgs/development/libraries/fizz/default.nix @@ -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 + ]; }; })