3
0
Fork 0
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:
John Ericson 2021-05-14 15:00:25 -04:00 committed by GitHub
commit f030f859b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.