treewide: Use depsBuildBuild
for buildPackges.stdenv.cc
This commit is contained in:
parent
3a50395ef2
commit
5b74540c5b
@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [ "--enable-widec" ] ++ stdenv.lib.optional sslSupport "--with-ssl";
|
configureFlags = [ "--enable-widec" ] ++ stdenv.lib.optional sslSupport "--with-ssl";
|
||||||
|
|
||||||
nativeBuildInputs = stdenv.lib.optional sslSupport pkgconfig
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
++ stdenv.lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc
|
nativeBuildInputs = [ nukeReferences ]
|
||||||
++ [ nukeReferences ];
|
++ stdenv.lib.optional sslSupport pkgconfig;
|
||||||
|
|
||||||
buildInputs = [ ncurses gzip ] ++ stdenv.lib.optional sslSupport openssl.dev;
|
buildInputs = [ ncurses gzip ] ++ stdenv.lib.optional sslSupport openssl.dev;
|
||||||
|
|
||||||
|
@ -102,7 +102,8 @@ stdenv.mkDerivation rec {
|
|||||||
rm -rf ffmpeg
|
rm -rf ffmpeg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ buildPackages.stdenv.cc pkgconfig yasm ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
nativeBuildInputs = [ pkgconfig yasm ];
|
||||||
buildInputs = with stdenv.lib;
|
buildInputs = with stdenv.lib;
|
||||||
[ freetype ffmpeg ]
|
[ freetype ffmpeg ]
|
||||||
++ optional aalibSupport aalib
|
++ optional aalibSupport aalib
|
||||||
|
@ -277,6 +277,7 @@ stdenv.mkDerivation ({
|
|||||||
inherit noSysDirs staticCompiler langJava
|
inherit noSysDirs staticCompiler langJava
|
||||||
libcCross crossMingw;
|
libcCross crossMingw;
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ texinfo which gettext ]
|
nativeBuildInputs = [ texinfo which gettext ]
|
||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
@ -287,7 +288,6 @@ stdenv.mkDerivation ({
|
|||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
++ (optionals (targetPlatform != hostPlatform) [targetPackages.stdenv.cc.bintools])
|
++ (optionals (targetPlatform != hostPlatform) [targetPackages.stdenv.cc.bintools])
|
||||||
++ (optionals (buildPlatform != hostPlatform) [buildPackages.stdenv.cc])
|
|
||||||
++ (optionals langAda [gnatboot])
|
++ (optionals langAda [gnatboot])
|
||||||
++ (optionals langVhdl [gnat])
|
++ (optionals langVhdl [gnat])
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
outputs = [ "out" "bin" "dev" "static" ];
|
outputs = [ "out" "bin" "dev" "static" ];
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional (cross != null) buildPackages.stdenv.cc;
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
buildInputs = lib.optionals withGd [ gd libpng ];
|
buildInputs = lib.optionals withGd [ gd libpng ];
|
||||||
|
|
||||||
# Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to
|
# Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to
|
||||||
|
@ -19,8 +19,8 @@ let self = stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "dev" "info" ];
|
outputs = [ "out" "dev" "info" ];
|
||||||
passthru.static = self.out;
|
passthru.static = self.out;
|
||||||
|
|
||||||
nativeBuildInputs = [ m4 ]
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
++ stdenv.lib.optional (buildPlatform != hostPlatform) buildPackages.stdenv.cc;
|
nativeBuildInputs = [ m4 ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
# Build a "fat binary", with routines for several sub-architectures
|
# Build a "fat binary", with routines for several sub-architectures
|
||||||
|
@ -19,7 +19,8 @@ stdenv.mkDerivation rec {
|
|||||||
find . ../include/opcode -type f -exec sed {} -i -e 's/"bfd.h"/<bfd.h>/' \;
|
find . ../include/opcode -type f -exec sed {} -i -e 's/"bfd.h"/<bfd.h>/' \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook264 bison buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
nativeBuildInputs = [ autoreconfHook264 bison ];
|
||||||
buildInputs = [ libiberty ];
|
buildInputs = [ libiberty ];
|
||||||
# dis-asm.h includes bfd.h
|
# dis-asm.h includes bfd.h
|
||||||
propagatedBuildInputs = [ libbfd ];
|
propagatedBuildInputs = [ libbfd ];
|
||||||
|
@ -37,10 +37,11 @@ stdenv.mkDerivation rec {
|
|||||||
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
|
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
|
||||||
CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
|
CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
] ++ lib.optionals (buildPlatform != hostPlatform) [
|
] ++ lib.optionals (buildPlatform != hostPlatform) [
|
||||||
buildPackages.ncurses buildPackages.stdenv.cc
|
buildPackages.ncurses
|
||||||
];
|
];
|
||||||
buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm;
|
buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm;
|
||||||
|
|
||||||
|
@ -65,7 +65,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "info" "man" ];
|
outputs = [ "out" "info" "man" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ bison buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
nativeBuildInputs = [ bison ];
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
inherit noSysDirs;
|
inherit noSysDirs;
|
||||||
|
@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
|
|||||||
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
|
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
buildInputs = lib.optionals (enableStatic && !useMusl) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
buildInputs = lib.optionals (enableStatic && !useMusl) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ stdenvNoCC.mkDerivation {
|
|||||||
|
|
||||||
# It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
|
# It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
|
||||||
# We do this so we have a build->build, not build->host, C compiler.
|
# We do this so we have a build->build, not build->host, C compiler.
|
||||||
nativeBuildInputs = [ buildPackages.stdenv.cc perl ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
nativeBuildInputs = [ perl ];
|
||||||
|
|
||||||
extraIncludeDirs = lib.optional hostPlatform.isPowerPC ["ppc"];
|
extraIncludeDirs = lib.optional hostPlatform.isPowerPC ["ppc"];
|
||||||
|
|
||||||
|
@ -68,10 +68,10 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Note: Bison is needed because the patches above modify parse.y.
|
# Note: Bison is needed because the patches above modify parse.y.
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [bison]
|
nativeBuildInputs = [bison]
|
||||||
++ optional (texinfo != null) texinfo
|
++ optional (texinfo != null) texinfo
|
||||||
++ optional hostPlatform.isDarwin binutils
|
++ optional hostPlatform.isDarwin binutils;
|
||||||
++ optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
|
|
||||||
|
|
||||||
buildInputs = optional interactive readline70;
|
buildInputs = optional interactive readline70;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user