Unverified Commit d084336c authored by Thomas Gerbet's avatar Thomas Gerbet Committed by GitHub
Browse files

libhv: 1.3.2 → 1.3.3 (#350316)

parents d2c0b403 87aa8fee
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, curl, openssl, Security }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  curl,
  openssl,
  darwin,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libhv";
  version = "1.3.2";
  version = "1.3.3";

  src = fetchFromGitHub {
    owner = "ithewei";
    repo = "libhv";
    rev = "v${finalAttrs.version}";
    hash = "sha256-tVuQwj2HvAhp51urGCuNPjBEIaTu9yR031Ih/5or9Pk=";
    hash = "sha256-N2YD84eORA5nDpeeqy9jCvRx86PkRaKLzI6LF1AnHtU=";
  };

  patches = [
    # Fix build failure on gcc-13:
    #   https://github.com/ithewei/libhv/pull/490
    (fetchpatch {
      name = "gcc-13.patch";
      url = "https://github.com/ithewei/libhv/commit/b3e61519fbdbbb956fed275c0a849ba5d4d6e45c.patch";
      hash = "sha256-fuYI+B3qZkSAbLZc0p6/0fnqaHx6w9N9vhTEE2t6UUs=";
    })
  ];

  nativeBuildInputs = [ cmake ];

  buildInputs = [ curl openssl ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
  buildInputs = [
    curl
    openssl
  ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;

  cmakeFlags = [
    "-DENABLE_UDS=ON"
+0 −4
Original line number Diff line number Diff line
@@ -21027,10 +21027,6 @@ with pkgs;
  libhugetlbfs = callPackage ../development/libraries/libhugetlbfs { };
  libhv = callPackage ../development/libraries/libhv {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  libhwy = callPackage ../development/libraries/libhwy { };
  libHX = callPackage ../development/libraries/libHX { };