cc-wrapper: Remove unused params
Ensured hashes unchanged and eval succeeds in tarball job
This commit is contained in:
parent
0ab717d547
commit
c035711072
@ -8,10 +8,8 @@
|
|||||||
{ name ? "", stdenv, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
{ name ? "", stdenv, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
||||||
, cc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
|
, cc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
|
||||||
, zlib ? null, extraPackages ? [], extraBuildCommands ? ""
|
, zlib ? null, extraPackages ? [], extraBuildCommands ? ""
|
||||||
, dyld ? null # TODO: should this be a setup-hook on dyld?
|
|
||||||
, isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null
|
, isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null
|
||||||
, buildPackages ? {}, hostPlatform, targetPlatform
|
, buildPackages ? {}
|
||||||
, runCommand ? null
|
|
||||||
, useMacosReexportHack ? false
|
, useMacosReexportHack ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@ in rec {
|
|||||||
cc = if isNull last then "/dev/null" else import ../../build-support/cc-wrapper {
|
cc = if isNull last then "/dev/null" else import ../../build-support/cc-wrapper {
|
||||||
inherit shell;
|
inherit shell;
|
||||||
inherit (last) stdenv;
|
inherit (last) stdenv;
|
||||||
inherit (last.pkgs.darwin) dyld;
|
|
||||||
|
|
||||||
nativeTools = true;
|
nativeTools = true;
|
||||||
nativePrefix = bootstrapTools;
|
nativePrefix = bootstrapTools;
|
||||||
@ -85,8 +84,6 @@ in rec {
|
|||||||
buildPackages = lib.optionalAttrs (last ? stdenv) {
|
buildPackages = lib.optionalAttrs (last ? stdenv) {
|
||||||
inherit (last) stdenv;
|
inherit (last) stdenv;
|
||||||
};
|
};
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
libc = last.pkgs.darwin.Libsystem;
|
libc = last.pkgs.darwin.Libsystem;
|
||||||
isClang = true;
|
isClang = true;
|
||||||
cc = { name = "clang-9.9.9"; outPath = bootstrapTools; };
|
cc = { name = "clang-9.9.9"; outPath = bootstrapTools; };
|
||||||
@ -314,10 +311,7 @@ in rec {
|
|||||||
buildPackages = {
|
buildPackages = {
|
||||||
inherit (prevStage) stdenv;
|
inherit (prevStage) stdenv;
|
||||||
};
|
};
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
inherit (pkgs) coreutils binutils gnugrep;
|
inherit (pkgs) coreutils binutils gnugrep;
|
||||||
inherit (pkgs.darwin) dyld;
|
|
||||||
cc = pkgs.llvmPackages.clang-unwrapped;
|
cc = pkgs.llvmPackages.clang-unwrapped;
|
||||||
libc = pkgs.darwin.Libsystem;
|
libc = pkgs.darwin.Libsystem;
|
||||||
};
|
};
|
||||||
|
@ -40,8 +40,6 @@ let inherit (localSystem) system; in
|
|||||||
targetPlatform = localSystem;
|
targetPlatform = localSystem;
|
||||||
inherit config;
|
inherit config;
|
||||||
initialPath = [ "/" "/usr" ];
|
initialPath = [ "/" "/usr" ];
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
shell = "${bootstrapTools}/bin/bash";
|
shell = "${bootstrapTools}/bin/bash";
|
||||||
fetchurlBoot = null;
|
fetchurlBoot = null;
|
||||||
cc = null;
|
cc = null;
|
||||||
@ -55,13 +53,11 @@ let inherit (localSystem) system; in
|
|||||||
|
|
||||||
stdenv = import ../generic {
|
stdenv = import ../generic {
|
||||||
name = "stdenv-freebsd-boot-0";
|
name = "stdenv-freebsd-boot-0";
|
||||||
buildPlatform = localSystem;
|
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
inherit config;
|
inherit config;
|
||||||
initialPath = [ prevStage.bootstrapTools ];
|
initialPath = [ prevStage.bootstrapTools ];
|
||||||
inherit (prevStage.stdenv)
|
inherit (prevStage.stdenv)
|
||||||
hostPlatform targetPlatform shell;
|
buildPlatform hostPlatform targetPlatform
|
||||||
|
shell;
|
||||||
fetchurlBoot = prevStage.fetchurl;
|
fetchurlBoot = prevStage.fetchurl;
|
||||||
cc = null;
|
cc = null;
|
||||||
};
|
};
|
||||||
@ -71,13 +67,11 @@ let inherit (localSystem) system; in
|
|||||||
inherit config overlays;
|
inherit config overlays;
|
||||||
stdenv = import ../generic {
|
stdenv = import ../generic {
|
||||||
name = "stdenv-freebsd-boot-3";
|
name = "stdenv-freebsd-boot-3";
|
||||||
buildPlatform = localSystem;
|
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
inherit config;
|
inherit config;
|
||||||
|
|
||||||
inherit (prevStage.stdenv)
|
inherit (prevStage.stdenv)
|
||||||
hostPlatform targetPlatform initialPath shell fetchurlBoot;
|
buildPlatform hostPlatform targetPlatform
|
||||||
|
initialPath shell fetchurlBoot;
|
||||||
|
|
||||||
cc = import ../../build-support/cc-wrapper {
|
cc = import ../../build-support/cc-wrapper {
|
||||||
nativeTools = true;
|
nativeTools = true;
|
||||||
|
@ -79,8 +79,6 @@ let
|
|||||||
buildPackages = lib.optionalAttrs (prevStage ? stdenv) {
|
buildPackages = lib.optionalAttrs (prevStage ? stdenv) {
|
||||||
inherit (prevStage) stdenv;
|
inherit (prevStage) stdenv;
|
||||||
};
|
};
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
cc = prevStage.gcc-unwrapped;
|
cc = prevStage.gcc-unwrapped;
|
||||||
isGNU = true;
|
isGNU = true;
|
||||||
libc = prevStage.glibc;
|
libc = prevStage.glibc;
|
||||||
@ -244,8 +242,6 @@ in
|
|||||||
buildPackages = {
|
buildPackages = {
|
||||||
inherit (prevStage) stdenv;
|
inherit (prevStage) stdenv;
|
||||||
};
|
};
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
cc = prevStage.gcc-unwrapped;
|
cc = prevStage.gcc-unwrapped;
|
||||||
libc = self.glibc;
|
libc = self.glibc;
|
||||||
inherit (self) stdenv binutils coreutils gnugrep;
|
inherit (self) stdenv binutils coreutils gnugrep;
|
||||||
|
@ -13,12 +13,10 @@ bootStages ++ [
|
|||||||
inherit config overlays;
|
inherit config overlays;
|
||||||
|
|
||||||
stdenv = import ../generic rec {
|
stdenv = import ../generic rec {
|
||||||
buildPlatform = localSystem;
|
|
||||||
hostPlatform = localSystem;
|
|
||||||
targetPlatform = localSystem;
|
|
||||||
|
|
||||||
inherit config;
|
inherit config;
|
||||||
|
|
||||||
|
inherit (prevStage.stdenv) buildPlatform hostPlatform targetPlatform;
|
||||||
|
|
||||||
preHook = ''
|
preHook = ''
|
||||||
export NIX_ENFORCE_PURITY="''${NIX_ENFORCE_PURITY-1}"
|
export NIX_ENFORCE_PURITY="''${NIX_ENFORCE_PURITY-1}"
|
||||||
export NIX_ENFORCE_NO_NATIVE="''${NIX_ENFORCE_NO_NATIVE-1}"
|
export NIX_ENFORCE_NO_NATIVE="''${NIX_ENFORCE_NO_NATIVE-1}"
|
||||||
@ -27,8 +25,6 @@ bootStages ++ [
|
|||||||
|
|
||||||
initialPath = (import ../common-path.nix) { pkgs = prevStage; };
|
initialPath = (import ../common-path.nix) { pkgs = prevStage; };
|
||||||
|
|
||||||
inherit (prevStage.stdenv) hostPlatform targetPlatform;
|
|
||||||
|
|
||||||
cc = import ../../build-support/cc-wrapper {
|
cc = import ../../build-support/cc-wrapper {
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativePrefix = stdenv.lib.optionalString hostPlatform.isSunOS "/usr";
|
nativePrefix = stdenv.lib.optionalString hostPlatform.isSunOS "/usr";
|
||||||
|
@ -6063,7 +6063,6 @@ with pkgs;
|
|||||||
nativeLibc = stdenv.cc.nativeLibc or false;
|
nativeLibc = stdenv.cc.nativeLibc or false;
|
||||||
nativePrefix = stdenv.cc.nativePrefix or "";
|
nativePrefix = stdenv.cc.nativePrefix or "";
|
||||||
cc = baseCC;
|
cc = baseCC;
|
||||||
dyld = if stdenv.isDarwin then darwin.dyld else null;
|
|
||||||
isGNU = baseCC.isGNU or false;
|
isGNU = baseCC.isGNU or false;
|
||||||
isClang = baseCC.isClang or false;
|
isClang = baseCC.isClang or false;
|
||||||
inherit libc extraBuildCommands;
|
inherit libc extraBuildCommands;
|
||||||
@ -6089,7 +6088,6 @@ with pkgs;
|
|||||||
nativeLibc = false;
|
nativeLibc = false;
|
||||||
noLibc = (libc == null);
|
noLibc = (libc == null);
|
||||||
|
|
||||||
dyld = if stdenv.isDarwin then darwin.dyld else null;
|
|
||||||
isGNU = cc.isGNU or false;
|
isGNU = cc.isGNU or false;
|
||||||
isClang = cc.isClang or false;
|
isClang = cc.isClang or false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user