Skip to content

Commit

Permalink
Merge pull request #118313 from sternenseemann/static-llvm-stdenvs
Browse files Browse the repository at this point in the history
pkgsStatic: apply stdenvAdapters to all llvm stdenvs
  • Loading branch information
Ericson2314 authored Apr 28, 2021
2 parents a338775 + 79cd04d commit 3f3f831
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pkgs/top-level/static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,29 @@ self: super: let
});
};

llvmStaticAdapter = llvmPackages:
llvmPackages // {
stdenv = foldl (flip id) llvmPackages.stdenv staticAdapters;
libcxxStdenv = foldl (flip id) llvmPackages.libcxxStdenv staticAdapters;
};

in {
stdenv = foldl (flip id) super.stdenv staticAdapters;

gcc49Stdenv = foldl (flip id) super.gcc49Stdenv staticAdapters;
gcc6Stdenv = foldl (flip id) super.gcc6Stdenv staticAdapters;
gcc7Stdenv = foldl (flip id) super.gcc7Stdenv staticAdapters;
gcc8Stdenv = foldl (flip id) super.gcc8Stdenv staticAdapters;
gcc9Stdenv = foldl (flip id) super.gcc9Stdenv staticAdapters;
clangStdenv = foldl (flip id) super.clangStdenv staticAdapters;
libcxxStdenv = foldl (flip id) super.libcxxStdenv staticAdapters;

llvmPackages_5 = llvmStaticAdapter super.llvmPackages_5;
llvmPackages_6 = llvmStaticAdapter super.llvmPackages_6;
llvmPackages_7 = llvmStaticAdapter super.llvmPackages_7;
llvmPackages_8 = llvmStaticAdapter super.llvmPackages_8;
llvmPackages_9 = llvmStaticAdapter super.llvmPackages_9;
llvmPackages_10 = llvmStaticAdapter super.llvmPackages_10;
llvmPackages_11 = llvmStaticAdapter super.llvmPackages_11;
llvmPackages_12 = llvmStaticAdapter super.llvmPackages_12;

boost = super.boost.override {
# Don’t use new stdenv for boost because it doesn’t like the
Expand Down

0 comments on commit 3f3f831

Please sign in to comment.