|
310 | 310 | }; |
311 | 311 |
|
312 | 312 | # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64. |
313 | | - extraNativeBuildInputs = |
314 | | - lib.optional (localSystem.isLoongArch64) prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 313 | + extraNativeBuildInputs = [ prevStage.updateAutotoolsGnuConfigScriptsHook ]; |
315 | 314 | }) |
316 | 315 |
|
317 | 316 | # First rebuild of gcc; this is linked against all sorts of junk |
|
391 | 390 | }; |
392 | 391 |
|
393 | 392 | # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64. |
394 | | - extraNativeBuildInputs = |
395 | | - lib.optional (localSystem.isLoongArch64) prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 393 | + extraNativeBuildInputs = [ prevStage.updateAutotoolsGnuConfigScriptsHook ]; |
396 | 394 | }) |
397 | 395 |
|
398 | 396 | # 2nd stdenv that contains our own rebuilt binutils and is used for |
|
477 | 475 |
|
478 | 476 | # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64. |
479 | 477 | # `libtool` comes with obsolete config.sub/config.guess that don't recognize Risc-V. |
480 | | - extraNativeBuildInputs = |
481 | | - lib.optional (localSystem.isLoongArch64 || localSystem.isRiscV) prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 478 | + extraNativeBuildInputs = [ prevStage.updateAutotoolsGnuConfigScriptsHook ]; |
482 | 479 | }) |
483 | 480 |
|
484 | 481 |
|
|
516 | 513 | passthru = a.passthru // { inherit (self) gmp mpfr libmpc isl; }; |
517 | 514 | }); |
518 | 515 | }; |
519 | | - extraNativeBuildInputs = [ prevStage.patchelf ] ++ |
| 516 | + extraNativeBuildInputs = [ |
| 517 | + prevStage.patchelf |
520 | 518 | # Many tarballs come with obsolete config.sub/config.guess that don't recognize aarch64. |
521 | | - lib.optional (!localSystem.isx86 || localSystem.libc == "musl") |
522 | | - prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 519 | + prevStage.updateAutotoolsGnuConfigScriptsHook |
| 520 | + ]; |
523 | 521 | }) |
524 | 522 |
|
525 | 523 |
|
|
572 | 570 | shell = self.bash + "/bin/bash"; |
573 | 571 | }; |
574 | 572 | }; |
575 | | - extraNativeBuildInputs = [ prevStage.patchelf prevStage.xz ] ++ |
| 573 | + extraNativeBuildInputs = [ |
| 574 | + prevStage.patchelf prevStage.xz |
576 | 575 | # Many tarballs come with obsolete config.sub/config.guess that don't recognize aarch64. |
577 | | - lib.optional (!localSystem.isx86 || localSystem.libc == "musl") |
578 | | - prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 576 | + prevStage.updateAutotoolsGnuConfigScriptsHook |
| 577 | + ]; |
579 | 578 | }) |
580 | 579 |
|
581 | 580 | # Construct the final stdenv. It uses the Glibc and GCC, and adds |
|
610 | 609 | initialPath = |
611 | 610 | ((import ../generic/common-path.nix) {pkgs = prevStage;}); |
612 | 611 |
|
613 | | - extraNativeBuildInputs = [ prevStage.patchelf ] ++ |
| 612 | + extraNativeBuildInputs = [ |
| 613 | + prevStage.patchelf |
614 | 614 | # Many tarballs come with obsolete config.sub/config.guess that don't recognize aarch64. |
615 | | - lib.optional (!localSystem.isx86 || localSystem.libc == "musl") |
616 | | - prevStage.updateAutotoolsGnuConfigScriptsHook; |
| 615 | + prevStage.updateAutotoolsGnuConfigScriptsHook |
| 616 | + ]; |
617 | 617 |
|
618 | 618 | cc = prevStage.gcc; |
619 | 619 |
|
|
650 | 650 | ++ (with gcc-unwrapped.passthru; [ |
651 | 651 | gmp libmpc mpfr isl |
652 | 652 | ]) |
| 653 | + ++ [ prevStage.gnu-config ] |
653 | 654 | ; |
654 | 655 |
|
655 | 656 | overrides = self: super: { |
|
0 commit comments