From a4984c95280507c632f70ae6b82f86b14b20485d Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 9 Dec 2025 00:13:31 +0100 Subject: [PATCH] hercules-ci-agent: Work around #461651 on Darwin --- .../haskell-modules/configuration-darwin.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 9569f4b36597..d394e8d9c7ec 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -323,6 +323,18 @@ self: super: ''; }) super.di-core; + # Template Haskell on Darwin fails to load an available symbol in these + # transitive dependencies since GHC 9.10.3. + # See issue https://github.com/NixOS/nixpkgs/issues/461651 + hercules-ci-agent = overrideCabal (old: { + preBuild = '' + DYLD_INSERT_LIBRARIES="''${DYLD_INSERT_LIBRARIES:+$DYLD_INSERT_LIBRARIES:}$(pkg-config --variable=libdir nix-store)/libnixstore.dylib:$(pkg-config --variable=libdir nix-util)/libnixutil.dylib" + export DYLD_INSERT_LIBRARIES + echo "DYLD_INSERT_LIBRARIES=$DYLD_INSERT_LIBRARIES" + '' + + (old.preBuild or ""); + }) super.hercules-ci-agent; + # Require /usr/bin/security which breaks sandbox http-reverse-proxy = dontCheck super.http-reverse-proxy; servant-auth-server = dontCheck super.servant-auth-server;