···3333assert libelf != null -> zlib != null;
34343535# Make sure we get GNU sed.
3636-assert stdenv.hostPlatform.isDarwin -> gnused != null;
3636+assert stdenv.buildPlatform.isDarwin -> gnused != null;
37373838# The go frontend is written in c++
3939assert langGo -> langCC;
···159159 nativeBuildInputs = [ texinfo which gettext ]
160160 ++ (optional (perl != null) perl)
161161 ++ (optional langAda gnatboot)
162162+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
163163+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
164164+ ++ (optional buildPlatform.isDarwin gnused)
162165 ;
163166164167 # For building runtime libs
···177180 targetPackages.stdenv.cc.bintools # For linking code at run-time
178181 ] ++ (optional (isl != null) isl)
179182 ++ (optional (zlib != null) zlib)
180180- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
181181- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
182182- ++ (optional hostPlatform.isDarwin gnused)
183183 ;
184184185185 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4-4
pkgs/development/compilers/gcc/11/default.nix
···3333assert libelf != null -> zlib != null;
34343535# Make sure we get GNU sed.
3636-assert stdenv.hostPlatform.isDarwin -> gnused != null;
3636+assert stdenv.buildPlatform.isDarwin -> gnused != null;
37373838# The go frontend is written in c++
3939assert langGo -> langCC;
···167167 nativeBuildInputs = [ texinfo which gettext ]
168168 ++ (optional (perl != null) perl)
169169 ++ (optional langAda gnatboot)
170170+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
171171+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
172172+ ++ (optional buildPlatform.isDarwin gnused)
170173 ;
171174172175 # For building runtime libs
···185188 targetPackages.stdenv.cc.bintools # For linking code at run-time
186189 ] ++ (optional (isl != null) isl)
187190 ++ (optional (zlib != null) zlib)
188188- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
189189- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
190190- ++ (optional hostPlatform.isDarwin gnused)
191191 ;
192192193193 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4-4
pkgs/development/compilers/gcc/12/default.nix
···3333assert libelf != null -> zlib != null;
34343535# Make sure we get GNU sed.
3636-assert stdenv.hostPlatform.isDarwin -> gnused != null;
3636+assert stdenv.buildPlatform.isDarwin -> gnused != null;
37373838# The go frontend is written in c++
3939assert langGo -> langCC;
···162162 nativeBuildInputs = [ texinfo which gettext ]
163163 ++ (optional (perl != null) perl)
164164 ++ (optional langAda gnatboot)
165165+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
166166+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
167167+ ++ (optional buildPlatform.isDarwin gnused)
165168 ;
166169167170 # For building runtime libs
···180183 targetPackages.stdenv.cc.bintools # For linking code at run-time
181184 ] ++ (optional (isl != null) isl)
182185 ++ (optional (zlib != null) zlib)
183183- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
184184- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
185185- ++ (optional hostPlatform.isDarwin gnused)
186186 ;
187187188188 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6-5
pkgs/development/compilers/gcc/4.8/default.nix
···4343assert libelf != null -> zlib != null;
44444545# Make sure we get GNU sed.
4646-assert stdenv.hostPlatform.isDarwin -> gnused != null;
4646+assert stdenv.buildPlatform.isDarwin -> gnused != null;
47474848# The go frontend is written in c++
4949assert langGo -> langCC;
···165165 depsBuildBuild = [ buildPackages.stdenv.cc ];
166166 nativeBuildInputs = [ texinfo which gettext ]
167167 ++ (optional (perl != null) perl)
168168- ++ (optional javaAwtGtk pkg-config);
168168+ ++ (optional javaAwtGtk pkg-config)
169169+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
170170+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
171171+ ++ (optional buildPlatform.isDarwin gnused)
172172+ ;
169173170174 # For building runtime libs
171175 depsBuildTarget =
···186190 ++ (optional (zlib != null) zlib)
187191 ++ (optionals langJava [ boehmgc zip unzip ])
188192 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
189189- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
190190- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
191191- ++ (optional hostPlatform.isDarwin gnused)
192193 ;
193194194195 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6-5
pkgs/development/compilers/gcc/4.9/default.nix
···4343assert libelf != null -> zlib != null;
44444545# Make sure we get GNU sed.
4646-assert stdenv.hostPlatform.isDarwin -> gnused != null;
4646+assert stdenv.buildPlatform.isDarwin -> gnused != null;
47474848# The go frontend is written in c++
4949assert langGo -> langCC;
···185185 depsBuildBuild = [ buildPackages.stdenv.cc ];
186186 nativeBuildInputs = [ texinfo which gettext ]
187187 ++ (optional (perl != null) perl)
188188- ++ (optional javaAwtGtk pkg-config);
188188+ ++ (optional javaAwtGtk pkg-config)
189189+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
190190+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
191191+ ++ (optional buildPlatform.isDarwin gnused)
192192+ ;
189193190194 # For building runtime libs
191195 depsBuildTarget =
···206210 ++ (optional (zlib != null) zlib)
207211 ++ (optionals langJava [ boehmgc zip unzip ])
208212 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
209209- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
210210- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
211211- ++ (optional hostPlatform.isDarwin gnused)
212213 ;
213214214215 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4-4
pkgs/development/compilers/gcc/6/default.nix
···4444assert libelf != null -> zlib != null;
45454646# Make sure we get GNU sed.
4747-assert stdenv.hostPlatform.isDarwin -> gnused != null;
4747+assert stdenv.buildPlatform.isDarwin -> gnused != null;
48484949# The go frontend is written in c++
5050assert langGo -> langCC;
···196196 ++ (optional javaAwtGtk pkg-config)
197197 ++ (optional (with stdenv.targetPlatform; isVc4 || isRedox) flex)
198198 ++ (optional langAda gnatboot)
199199+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
200200+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
201201+ ++ (optional buildPlatform.isDarwin gnused)
199202 ;
200203201204 # For building runtime libs
···216219 ++ (optional (zlib != null) zlib)
217220 ++ (optionals langJava [ boehmgc zip unzip ])
218221 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
219219- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
220220- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
221221- ++ (optional hostPlatform.isDarwin gnused)
222222 ;
223223224224 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6-5
pkgs/development/compilers/gcc/7/default.nix
···3030assert libelf != null -> zlib != null;
31313232# Make sure we get GNU sed.
3333-assert stdenv.hostPlatform.isDarwin -> gnused != null;
3333+assert stdenv.buildPlatform.isDarwin -> gnused != null;
34343535# The go frontend is written in c++
3636assert langGo -> langCC;
···164164165165 depsBuildBuild = [ buildPackages.stdenv.cc ];
166166 nativeBuildInputs = [ texinfo which gettext ]
167167- ++ (optional (perl != null) perl);
167167+ ++ (optional (perl != null) perl)
168168+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
169169+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
170170+ ++ (optional buildPlatform.isDarwin gnused)
171171+ ;
168172169173 # For building runtime libs
170174 depsBuildTarget =
···182186 targetPackages.stdenv.cc.bintools # For linking code at run-time
183187 ] ++ (optional (isl != null) isl)
184188 ++ (optional (zlib != null) zlib)
185185- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
186186- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
187187- ++ (optional hostPlatform.isDarwin gnused)
188189 ;
189190190191 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6-5
pkgs/development/compilers/gcc/8/default.nix
···3030assert libelf != null -> zlib != null;
31313232# Make sure we get GNU sed.
3333-assert stdenv.hostPlatform.isDarwin -> gnused != null;
3333+assert stdenv.buildPlatform.isDarwin -> gnused != null;
34343535# The go frontend is written in c++
3636assert langGo -> langCC;
···148148149149 depsBuildBuild = [ buildPackages.stdenv.cc ];
150150 nativeBuildInputs = [ texinfo which gettext ]
151151- ++ (optional (perl != null) perl);
151151+ ++ (optional (perl != null) perl)
152152+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
153153+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
154154+ ++ (optional buildPlatform.isDarwin gnused)
155155+ ;
152156153157 # For building runtime libs
154158 depsBuildTarget =
···166170 targetPackages.stdenv.cc.bintools # For linking code at run-time
167171 ] ++ (optional (isl != null) isl)
168172 ++ (optional (zlib != null) zlib)
169169- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
170170- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
171171- ++ (optional hostPlatform.isDarwin gnused)
172173 ;
173174174175 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4-4
pkgs/development/compilers/gcc/9/default.nix
···3838assert libelf != null -> zlib != null;
39394040# Make sure we get GNU sed.
4141-assert stdenv.hostPlatform.isDarwin -> gnused != null;
4141+assert stdenv.buildPlatform.isDarwin -> gnused != null;
42424343# The go frontend is written in c++
4444assert langGo -> langCC;
···161161 nativeBuildInputs = [ texinfo which gettext ]
162162 ++ (optional (perl != null) perl)
163163 ++ (optional langAda gnatboot)
164164+ # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
165165+ # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
166166+ ++ (optional buildPlatform.isDarwin gnused)
164167 ;
165168166169 # For building runtime libs
···179182 targetPackages.stdenv.cc.bintools # For linking code at run-time
180183 ] ++ (optional (isl != null) isl)
181184 ++ (optional (zlib != null) zlib)
182182- # The builder relies on GNU sed (for instance, Darwin's `sed' fails with
183183- # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it.
184184- ++ (optional hostPlatform.isDarwin gnused)
185185 ;
186186187187 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;