From ea8f7c5ff292dd703cf106fa8eca107092bb0563 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Thu, 15 Oct 2026 17:45:13 +0900 Subject: [PATCH] Apply the BLST symbol declaration fix to Darwin builds --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index 30b000ab11..d015fb1983 100644 --- a/flake.nix +++ b/flake.nix @@ -92,6 +92,12 @@ } ) + ({ pkgs, lib, ... }: lib.mkIf pkgs.stdenv.hostPlatform.isDarwin { + # GHC's Mach-O loader rejects BLST's redundant COMMON declarations + # alongside the C definition during Template Haskell loading. + packages.simplexmq.patches = [ ./scripts/nix/simplexmq-blst-darwin-extern.patch ]; + }) + ({ pkgs, lib, ...}: lib.mkIf (!pkgs.stdenv.hostPlatform.isWindows) { # This patch adds `dl` as an extra-library to direct-sqlciper, which is needed # on pretty much all unix platforms, but then blows up on windows m(