Skip to content

Commit a4984c9

Browse files
committed
hercules-ci-agent: Work around NixOS#461651 on Darwin
1 parent 6fc8903 commit a4984c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkgs/development/haskell-modules/configuration-darwin.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,18 @@ self: super:
323323
'';
324324
}) super.di-core;
325325

326+
# Template Haskell on Darwin fails to load an available symbol in these
327+
# transitive dependencies since GHC 9.10.3.
328+
# See issue https://github.com/NixOS/nixpkgs/issues/461651
329+
hercules-ci-agent = overrideCabal (old: {
330+
preBuild = ''
331+
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"
332+
export DYLD_INSERT_LIBRARIES
333+
echo "DYLD_INSERT_LIBRARIES=$DYLD_INSERT_LIBRARIES"
334+
''
335+
+ (old.preBuild or "");
336+
}) super.hercules-ci-agent;
337+
326338
# Require /usr/bin/security which breaks sandbox
327339
http-reverse-proxy = dontCheck super.http-reverse-proxy;
328340
servant-auth-server = dontCheck super.servant-auth-server;

0 commit comments

Comments
 (0)