···154155 //
156157- (if buildOutOfSourceTree
158- then {
159 preConfigure =
160 # Build out of source tree and make the source tree read-only. This
161 # helps catch violations of the GNU Coding Standards (info
···170 ${lib.optionalString (preConfigure != null) preConfigure}
171 '';
172 }
173- else {})
174)
···154155 //
156157+ (lib.optionalAttrs buildOutOfSourceTree
158+ {
159 preConfigure =
160 # Build out of source tree and make the source tree read-only. This
161 # helps catch violations of the GNU Coding Standards (info
···170 ${lib.optionalString (preConfigure != null) preConfigure}
171 '';
172 }
173+ )
174)
+3-3
pkgs/build-support/release/source-tarball.nix
···10 if officialRelease
11 then ""
12 else "pre${toString (src.rev or src.revCount or "")}"
13-, src, stdenv, autoconf, automake, libtool
14, # By default, provide all the GNU Build System as input.
15 bootstrapBuildInputs ? [ autoconf automake libtool ]
16, ... } @ args:
···73 }
7475 # Then, the caller-supplied attributes.
76- // args //
7778 # And finally, our own stuff.
79 {
···117 version = version + versionSuffix;
118 };
119120- meta = (if args ? meta then args.meta else {}) // {
121 description = "Source distribution";
122123 # Tarball builds are generally important, so give them a high
···10 if officialRelease
11 then ""
12 else "pre${toString (src.rev or src.revCount or "")}"
13+, src, lib, stdenv, autoconf, automake, libtool
14, # By default, provide all the GNU Build System as input.
15 bootstrapBuildInputs ? [ autoconf automake libtool ]
16, ... } @ args:
···73 }
7475 # Then, the caller-supplied attributes.
76+ // (builtins.removeAttrs args [ "lib" ]) //
7778 # And finally, our own stuff.
79 {
···117 version = version + versionSuffix;
118 };
119120+ meta = (lib.optionalAttrs (args ? meta) args.meta) // {
121 description = "Source distribution";
122123 # Tarball builds are generally important, so give them a high
+11-12
pkgs/top-level/all-packages.nix
···15545 profiledCompiler = false;
1554615547 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15548- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "4.8" else { };
1554915550 isl = if !stdenv.isDarwin then isl_0_14 else null;
15551 cloog = if !stdenv.isDarwin then cloog else null;
···15559 profiledCompiler = false;
1556015561 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15562- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "4.9" else { };
1556315564 isl = if !stdenv.isDarwin then isl_0_11 else null;
15565···15576 profiledCompiler = false;
1557715578 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15579- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "6" else { };
1558015581 # gcc 10 is too strict to cross compile gcc <= 8
15582 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15595 profiledCompiler = false;
1559615597 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15598- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "7" else { };
1559915600 # gcc 10 is too strict to cross compile gcc <= 8
15601 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15610 profiledCompiler = false;
1561115612 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15613- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "8" else { };
1561415615 # gcc 10 is too strict to cross compile gcc <= 8
15616 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15625 profiledCompiler = false;
1562615627 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15628- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "9" else { };
1562915630 isl = if !stdenv.isDarwin then isl_0_20 else null;
15631 }));
···15637 profiledCompiler = false;
1563815639 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15640- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "10" else { };
1564115642 isl = if !stdenv.isDarwin then isl_0_20 else null;
15643 }));
···15649 profiledCompiler = false;
1565015651 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15652- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "11" else { };
1565315654 isl = if !stdenv.isDarwin then isl_0_20 else null;
15655 }));
···15661 profiledCompiler = false;
1566215663 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15664- threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCrossFor "12" else { };
1566515666 isl = if !stdenv.isDarwin then isl_0_20 else null;
15667 }));
···2134021341 threadsCross = threadsCrossFor null;
21342 threadsCrossFor = cc_version:
21343- if stdenv.targetPlatform.isMinGW && !(stdenv.targetPlatform.useLLVM or false)
21344- then {
21345 # other possible values: win32 or posix
21346 model = "mcf";
21347 # For win32 or posix set this to null
···21349 if cc_version == null || lib.versionAtLeast cc_version "13"
21350 then targetPackages.windows.mcfgthreads or windows.mcfgthreads
21351 else targetPackages.windows.mcfgthreads_pre_gcc_13 or windows.mcfgthreads_pre_gcc_13;
21352- } else { };
2135321354 wasilibc = callPackage ../development/libraries/wasilibc {
21355 stdenv = crossLibcStdenv;
···15545 profiledCompiler = false;
1554615547 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15548+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "4.8");
1554915550 isl = if !stdenv.isDarwin then isl_0_14 else null;
15551 cloog = if !stdenv.isDarwin then cloog else null;
···15559 profiledCompiler = false;
1556015561 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15562+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "4.9");
1556315564 isl = if !stdenv.isDarwin then isl_0_11 else null;
15565···15576 profiledCompiler = false;
1557715578 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15579+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "6");
1558015581 # gcc 10 is too strict to cross compile gcc <= 8
15582 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15595 profiledCompiler = false;
1559615597 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15598+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "7");
1559915600 # gcc 10 is too strict to cross compile gcc <= 8
15601 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15610 profiledCompiler = false;
1561115612 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15613+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "8");
1561415615 # gcc 10 is too strict to cross compile gcc <= 8
15616 stdenv = if (stdenv.targetPlatform != stdenv.buildPlatform) && stdenv.cc.isGNU then gcc7Stdenv else stdenv;
···15625 profiledCompiler = false;
1562615627 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15628+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "9");
1562915630 isl = if !stdenv.isDarwin then isl_0_20 else null;
15631 }));
···15637 profiledCompiler = false;
1563815639 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15640+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "10");
1564115642 isl = if !stdenv.isDarwin then isl_0_20 else null;
15643 }));
···15649 profiledCompiler = false;
1565015651 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15652+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "11");
1565315654 isl = if !stdenv.isDarwin then isl_0_20 else null;
15655 }));
···15661 profiledCompiler = false;
1566215663 libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
15664+ threadsCross = lib.optionalAttrs (stdenv.targetPlatform != stdenv.buildPlatform) (threadsCrossFor "12");
1566515666 isl = if !stdenv.isDarwin then isl_0_20 else null;
15667 }));
···2134021341 threadsCross = threadsCrossFor null;
21342 threadsCrossFor = cc_version:
21343+ lib.optionalAttrs (stdenv.targetPlatform.isMinGW && !(stdenv.targetPlatform.useLLVM or false)) {
021344 # other possible values: win32 or posix
21345 model = "mcf";
21346 # For win32 or posix set this to null
···21348 if cc_version == null || lib.versionAtLeast cc_version "13"
21349 then targetPackages.windows.mcfgthreads or windows.mcfgthreads
21350 else targetPackages.windows.mcfgthreads_pre_gcc_13 or windows.mcfgthreads_pre_gcc_13;
21351+ };
2135221353 wasilibc = callPackage ../development/libraries/wasilibc {
21354 stdenv = crossLibcStdenv;