Merge pull request #121323 from sternenseemann/pkgs-llvm

pkgsLLVM: cross compiled package set using llvm compilers
This commit is contained in:
John Ericson
2021-05-14 15:00:25 -04:00
committed by GitHub

View File

@@ -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.