Merge pull request #56219 from Ericson2314/more-stdenvNoLibs
gccStdenvNoLibs, clangStdenvNoLibs: Init; libgcc: Use gccStdenvNoLibs
This commit is contained in:
commit
f6d6daa82b
@ -35,7 +35,7 @@ in
|
|||||||
|
|
||||||
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
|
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
|
||||||
|
|
||||||
stdenvNoLibs = let
|
mkStdenvNoLibs = stdenv: let
|
||||||
bintools = stdenv.cc.bintools.override {
|
bintools = stdenv.cc.bintools.override {
|
||||||
libc = null;
|
libc = null;
|
||||||
noLibc = true;
|
noLibc = true;
|
||||||
@ -51,6 +51,11 @@ in
|
|||||||
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
|
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stdenvNoLibs = mkStdenvNoLibs stdenv;
|
||||||
|
|
||||||
|
gccStdenvNoLibs = mkStdenvNoLibs gccStdenv;
|
||||||
|
clangStdenvNoLibs = mkStdenvNoLibs clangStdenv;
|
||||||
|
|
||||||
# For convenience, allow callers to get the path to Nixpkgs.
|
# For convenience, allow callers to get the path to Nixpkgs.
|
||||||
path = ../..;
|
path = ../..;
|
||||||
|
|
||||||
@ -8553,7 +8558,9 @@ in
|
|||||||
|
|
||||||
librarian-puppet-go = callPackage ../development/tools/librarian-puppet-go { };
|
librarian-puppet-go = callPackage ../development/tools/librarian-puppet-go { };
|
||||||
|
|
||||||
libgcc = callPackage ../development/libraries/gcc/libgcc { };
|
libgcc = callPackage ../development/libraries/gcc/libgcc {
|
||||||
|
stdenvNoLibs = gccStdenvNoLibs; # cannot be built with clang it seems
|
||||||
|
};
|
||||||
|
|
||||||
libstdcxx5 = callPackage ../development/libraries/gcc/libstdc++/5.nix { };
|
libstdcxx5 = callPackage ../development/libraries/gcc/libstdc++/5.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user