mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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.
This commit is contained in:
parent
44cf4801c0
commit
887d33a089
@ -1,5 +1,8 @@
|
||||
{ pkgspath ? ../../.., test-pkgspath ? pkgspath
|
||||
, localSystem ? { system = builtins.currentSystem; }
|
||||
# Specify the desired LLVM version in an overlay to avoid the use of
|
||||
# mismatching versions.
|
||||
, overlays ? [(self: super: { llvmPackages = super.llvmPackages_11; })]
|
||||
, crossSystem ? null
|
||||
, bootstrapFiles ? null
|
||||
}:
|
||||
@ -13,11 +16,9 @@ let cross = if crossSystem != null
|
||||
in (import "${pkgspath}/pkgs/stdenv/darwin" args');
|
||||
}
|
||||
else {};
|
||||
in with import pkgspath ({ inherit localSystem; } // cross // custom-bootstrap);
|
||||
in with import pkgspath ({ inherit localSystem overlays; } // cross // custom-bootstrap);
|
||||
|
||||
let
|
||||
llvmPackages = llvmPackages_11;
|
||||
in rec {
|
||||
rec {
|
||||
coreutils_ = coreutils.override (args: {
|
||||
# We want coreutils without ACL support.
|
||||
aclSupport = false;
|
||||
|
Loading…
Reference in New Issue
Block a user