From 6ee1413266683c605c062817940c247487ae6230 Mon Sep 17 00:00:00 2001 From: Kyle Sferrazza Date: Thu, 19 Jan 2023 00:00:03 -0800 Subject: [PATCH] fizz: init at 2023.01.30.00 Co-authored-by: Andrew Hamon --- pkgs/development/libraries/fizz/default.nix | 65 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 67 insertions(+) create mode 100644 pkgs/development/libraries/fizz/default.nix diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/development/libraries/fizz/default.nix new file mode 100644 index 000000000000..2addb5748263 --- /dev/null +++ b/pkgs/development/libraries/fizz/default.nix @@ -0,0 +1,65 @@ +{ stdenv +, fetchFromGitHub +, cmake +, boost +, libevent +, double-conversion +, glog +, lib +, fmt_8 +, zstd +, gflags +, libiberty +, openssl +, folly +, libsodium +, gtest +, zlib +}: + +stdenv.mkDerivation rec { + pname = "fizz"; + version = "2023.01.30.00"; + + src = fetchFromGitHub { + owner = "facebookincubator"; + repo = "fizz"; + rev = "v${version}"; + sha256 = "sha256-WyqDVoByBP91qGohNadr3iGpKEwZrURjr9mEaAdbfvs="; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeDir = "../fizz"; + + cmakeFlags = [ "-Wno-dev" ] + ++ lib.optionals stdenv.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; + + NIX_LDFLAGS = "-lz"; + + buildInputs = [ + fmt_8 + boost + double-conversion + folly + glog + gflags + gtest + libevent + libiberty + libsodium + openssl + zlib + zstd + ]; + + meta = with lib; { + description = "C++14 implementation of the TLS-1.3 standard"; + homepage = "https://github.com/facebookincubator/fizz"; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ pierreis kylesferrazza ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aa62ee680397..6ffd6cf59dad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19614,6 +19614,8 @@ with pkgs; filtron = callPackage ../servers/filtron { }; + fizz = callPackage ../development/libraries/fizz { }; + flann = callPackage ../development/libraries/flann { }; flatcc = callPackage ../development/libraries/flatcc { };