forked from mirrors/nixpkgs
Merge pull request #121323 from sternenseemann/pkgs-llvm
pkgsLLVM: cross compiled package set using llvm compilers
This commit is contained in:
commit
f030f859b9
|
@ -158,6 +158,20 @@ let
|
|||
nixpkgsFun { inherit crossSystem; })
|
||||
lib.systems.examples;
|
||||
|
||||
pkgsLLVM = nixpkgsFun {
|
||||
overlays = [
|
||||
(self': super': {
|
||||
pkgsLLVM = super';
|
||||
})
|
||||
] ++ overlays;
|
||||
# Bootstrap a cross stdenv using the LLVM toolchain.
|
||||
# This is currently not possible when compiling natively,
|
||||
# so we don't need to check hostPlatform != buildPlatform.
|
||||
crossSystem = stdenv.hostPlatform // {
|
||||
useLLVM = true;
|
||||
};
|
||||
};
|
||||
|
||||
# All packages built with the Musl libc. This will override the
|
||||
# default GNU libc on Linux systems. Non-Linux systems are not
|
||||
# supported.
|
||||
|
|
Loading…
Reference in a new issue