Skip to content

Commit d8ab0e5

Browse files
committed
fix: guard crypton-x509-system overlay for GHC 9.12 macOS
The haskell.nix module option for crypton-x509-system may not exist in GHC 9.12 plans. Guard the overlay with an option existence check to prevent evaluation failures on macOS.
1 parent aff31c3 commit d8ab0e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,13 @@
163163
buildModules,
164164
config,
165165
lib,
166+
options,
166167
...
167168
}:
168169
{
169170
packages =
170171
{ }
171-
// pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc) {
172+
// pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc && options.packages ? crypton-x509-system) {
172173
# Workaround for broken nixpkgs darwin.security_tool in
173174
# Mojave. This mirrors the workaround in nixpkgs
174175
# haskellPackages.

0 commit comments

Comments
 (0)