Skip to content

Commit 887d33a

Browse files
committed
freshBootstrapTools: Overlay the package set with the desired LLVM
As reported in #241692, since the `llvmPackages` bump the bootstrap-tools started failing to build due to a mismatch in LLVM versions used to build certain tools. By overlaying the imported package set to specify `llvmPackages`, we get everything built with the expected LLVM version.
1 parent 44cf480 commit 887d33a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

pkgs/stdenv/darwin/make-bootstrap-tools.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{ pkgspath ? ../../.., test-pkgspath ? pkgspath
22
, localSystem ? { system = builtins.currentSystem; }
3+
# Specify the desired LLVM version in an overlay to avoid the use of
4+
# mismatching versions.
5+
, overlays ? [(self: super: { llvmPackages = super.llvmPackages_11; })]
36
, crossSystem ? null
47
, bootstrapFiles ? null
58
}:
@@ -13,11 +16,9 @@ let cross = if crossSystem != null
1316
in (import "${pkgspath}/pkgs/stdenv/darwin" args');
1417
}
1518
else {};
16-
in with import pkgspath ({ inherit localSystem; } // cross // custom-bootstrap);
19+
in with import pkgspath ({ inherit localSystem overlays; } // cross // custom-bootstrap);
1720

18-
let
19-
llvmPackages = llvmPackages_11;
20-
in rec {
21+
rec {
2122
coreutils_ = coreutils.override (args: {
2223
# We want coreutils without ACL support.
2324
aclSupport = false;

0 commit comments

Comments
 (0)