From 51edb99f845ad5e5ebeb1d393e0a420800fc5cc3 Mon Sep 17 00:00:00 2001 From: Kyle Sferrazza Date: Thu, 19 Jan 2023 00:04:36 -0800 Subject: [PATCH] wangle: init at 2023.01.30.00 Co-authored-by: Andrew Hamon --- pkgs/development/libraries/wangle/default.nix | 68 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 70 insertions(+) create mode 100644 pkgs/development/libraries/wangle/default.nix diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/development/libraries/wangle/default.nix new file mode 100644 index 000000000000..2dc62f299fc3 --- /dev/null +++ b/pkgs/development/libraries/wangle/default.nix @@ -0,0 +1,68 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, boost +, libevent +, double-conversion +, glog +, fmt_8 +, gflags +, openssl +, fizz +, folly +, gtest +, libsodium +, zlib +}: + +stdenv.mkDerivation rec { + pname = "wangle"; + version = "2023.01.30.00"; + + src = fetchFromGitHub { + owner = "facebook"; + repo = "wangle"; + rev = "v${version}"; + sha256 = "sha256-pHBFX9zs1vHXveZw9HCieRuQldLrq5fwJXWzNyLx1Kg="; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeDir = "../wangle"; + + cmakeFlags = [ + "-Wno-dev" + ] ++ lib.optionals stdenv.isDarwin [ + "-DBUILD_TESTS=off" # Tests fail on Darwin due to missing utimensat + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; + + buildInputs = [ + fmt_8 + libsodium + zlib + boost + double-conversion + fizz + folly + gtest + glog + gflags + libevent + openssl + ]; + + meta = with lib; { + description = "An 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 = licenses.asl20; + 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 6ffd6cf59dad..eb8311cd71c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23671,6 +23671,8 @@ with pkgs; wally-cli = callPackage ../development/tools/wally-cli { }; zsa-udev-rules = callPackage ../os-specific/linux/zsa-udev-rules { }; + wangle = callPackage ../development/libraries/wangle { }; + wavpack = callPackage ../development/libraries/wavpack { }; wayland = callPackage ../development/libraries/wayland { };