From 76a8ec168c7da80df5773f15b925ce13044d1a39 Mon Sep 17 00:00:00 2001 From: Maksym Balatsko Date: Sun, 1 Oct 2023 10:52:22 +0200 Subject: [PATCH] hyperscan: enable build for x86_64-darwin --- pkgs/development/libraries/hyperscan/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/hyperscan/default.nix b/pkgs/development/libraries/hyperscan/default.nix index 2bfde78f7dbc..0cfb4d2259b7 100644 --- a/pkgs/development/libraries/hyperscan/default.nix +++ b/pkgs/development/libraries/hyperscan/default.nix @@ -28,9 +28,9 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - "-DFAT_RUNTIME=ON" "-DBUILD_AVX512=ON" ] + ++ lib.optional (!stdenv.isDarwin) "-DFAT_RUNTIME=ON" ++ lib.optional (withStatic) "-DBUILD_STATIC_AND_SHARED=ON" ++ lib.optional (!withStatic) "-DBUILD_SHARED_LIBS=ON"; @@ -67,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://www.hyperscan.io/"; maintainers = with maintainers; [ avnik ]; - platforms = [ "x86_64-linux" ]; + platforms = [ "x86_64-linux" "x86_64-darwin" ]; license = licenses.bsd3; }; })