Merge pull request #54801 from matthewbauer/fix-trace-pos
make-derivation: fix position in trace
This commit is contained in:
commit
ab118f3847
@ -21,6 +21,6 @@ in stdenv.mkDerivation {
|
||||
patches = [ ./osvi.patch ];
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
platforms = stdenv.lib.platforms.windows;
|
||||
};
|
||||
}
|
||||
|
@ -81,8 +81,6 @@ rec {
|
||||
, ... } @ attrs:
|
||||
|
||||
let
|
||||
computedName = if name != "" then name else "${attrs.pname}-${attrs.version}";
|
||||
|
||||
# TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when
|
||||
# no package has `doCheck = true`.
|
||||
doCheck' = doCheck && stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
@ -96,7 +94,7 @@ rec {
|
||||
++ depsHostHost ++ depsHostHostPropagated
|
||||
++ buildInputs ++ propagatedBuildInputs
|
||||
++ depsTargetTarget ++ depsTargetTargetPropagated) == 0;
|
||||
dontAddHostSuffix = attrs ? outputHash && !noNonNativeDeps || stdenv.cc == null;
|
||||
dontAddHostSuffix = attrs ? outputHash && !noNonNativeDeps || (stdenv.noCC or false);
|
||||
supportedHardeningFlags = [ "fortify" "stackprotector" "pie" "pic" "strictoverflow" "format" "relro" "bindnow" ];
|
||||
defaultHardeningFlags = if stdenv.hostPlatform.isMusl
|
||||
then supportedHardeningFlags
|
||||
@ -179,15 +177,15 @@ rec {
|
||||
"checkInputs" "installCheckInputs"
|
||||
"__impureHostDeps" "__propagatedImpureHostDeps"
|
||||
"sandboxProfile" "propagatedSandboxProfile"])
|
||||
// {
|
||||
name = computedName + lib.optionalString
|
||||
# Fixed-output derivations like source tarballs shouldn't get a host
|
||||
# suffix. But we have some weird ones with run-time deps that are
|
||||
# just used for their side-affects. Those might as well since the
|
||||
# hash can't be the same. See #32986.
|
||||
(stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix)
|
||||
("-" + stdenv.hostPlatform.config);
|
||||
|
||||
// (lib.optionalAttrs (name == "")) {
|
||||
name = "${attrs.pname}-${attrs.version}";
|
||||
} // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix)) {
|
||||
# Fixed-output derivations like source tarballs shouldn't get a host
|
||||
# suffix. But we have some weird ones with run-time deps that are
|
||||
# just used for their side-affects. Those might as well since the
|
||||
# hash can't be the same. See #32986.
|
||||
name = "${if name != "" then name else "${attrs.pname}-${attrs.version}"}-${stdenv.hostPlatform.config}";
|
||||
} // {
|
||||
builder = attrs.realBuilder or stdenv.shell;
|
||||
args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
|
||||
inherit stdenv;
|
||||
@ -276,7 +274,7 @@ rec {
|
||||
meta = {
|
||||
# `name` above includes cross-compilation cruft (and is under assert),
|
||||
# lets have a clean always accessible version here.
|
||||
name = computedName;
|
||||
name = if name != "" then name else "${attrs.pname}-${attrs.version}";
|
||||
|
||||
# If the packager hasn't specified `outputsToInstall`, choose a default,
|
||||
# which is the name of `p.bin or p.out or p`;
|
||||
|
@ -33,7 +33,7 @@ in
|
||||
# just the plain stdenv.
|
||||
stdenv_32bit = lowPrio (if stdenv.hostPlatform.is32bit then stdenv else multiStdenv);
|
||||
|
||||
stdenvNoCC = stdenv.override { cc = null; };
|
||||
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
|
||||
|
||||
stdenvNoLibs = let
|
||||
bintools = stdenv.cc.bintools.override {
|
||||
@ -6780,7 +6780,7 @@ in
|
||||
# built with, and use, that cross-compiled libc.
|
||||
gccCrossStageStatic = assert stdenv.targetPlatform != stdenv.hostPlatform; let
|
||||
libcCross1 =
|
||||
if stdenv.targetPlatform.libc == "msvcrt" then windows.mingw_w64_headers
|
||||
if stdenv.targetPlatform.libc == "msvcrt" then targetPackages.windows.mingw_w64_headers
|
||||
else if stdenv.targetPlatform.libc == "libSystem" then darwin.xcode
|
||||
else null;
|
||||
binutils1 = wrapBintoolsWith {
|
||||
|
Loading…
Reference in New Issue
Block a user