pkgs/stdenv/adapters.nix: Rename internal name
`finalAttrs` is never the first argument. This should have been called `prevAttrs` all along. It confused me for a bit, because the callback _must not_ be strict in `finalAttrs` (the first of _two_ parameters), or it will recurse infinitely while trying to figure out what the attrNames are.
This commit is contained in:
parent
8437d13b56
commit
8da01484cd
1 changed files with 3 additions and 3 deletions
|
@ -144,10 +144,10 @@ rec {
|
||||||
# extraBuildInputs are dropped in cross.nix, but darwin still needs them
|
# extraBuildInputs are dropped in cross.nix, but darwin still needs them
|
||||||
extraBuildInputs = [ pkgs.buildPackages.darwin.CF ];
|
extraBuildInputs = [ pkgs.buildPackages.darwin.CF ];
|
||||||
mkDerivationFromStdenv = withOldMkDerivation old (stdenv: mkDerivationSuper: args:
|
mkDerivationFromStdenv = withOldMkDerivation old (stdenv: mkDerivationSuper: args:
|
||||||
(mkDerivationSuper args).overrideAttrs (finalAttrs: {
|
(mkDerivationSuper args).overrideAttrs (prevAttrs: {
|
||||||
NIX_CFLAGS_LINK = toString (finalAttrs.NIX_CFLAGS_LINK or "")
|
NIX_CFLAGS_LINK = toString (prevAttrs.NIX_CFLAGS_LINK or "")
|
||||||
+ lib.optionalString (stdenv.cc.isGNU or false) " -static-libgcc";
|
+ lib.optionalString (stdenv.cc.isGNU or false) " -static-libgcc";
|
||||||
nativeBuildInputs = (finalAttrs.nativeBuildInputs or [])
|
nativeBuildInputs = (prevAttrs.nativeBuildInputs or [])
|
||||||
++ lib.optionals stdenv.hasCC [
|
++ lib.optionals stdenv.hasCC [
|
||||||
(pkgs.buildPackages.makeSetupHook {
|
(pkgs.buildPackages.makeSetupHook {
|
||||||
name = "darwin-portable-libSystem-hook";
|
name = "darwin-portable-libSystem-hook";
|
||||||
|
|
Loading…
Reference in a new issue