forked from mirrors/nixpkgs
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";
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional sslSupport pkgconfig
|
||||
++ stdenv.lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc
|
||||
++ [ nukeReferences ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ nukeReferences ]
|
||||
++ stdenv.lib.optional sslSupport pkgconfig;
|
||||
|
||||
buildInputs = [ ncurses gzip ] ++ stdenv.lib.optional sslSupport openssl.dev;
|
||||
|
||||
|
|
|
@ -102,7 +102,8 @@ stdenv.mkDerivation rec {
|
|||
rm -rf ffmpeg
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ buildPackages.stdenv.cc pkgconfig yasm ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ pkgconfig yasm ];
|
||||
buildInputs = with stdenv.lib;
|
||||
[ freetype ffmpeg ]
|
||||
++ optional aalibSupport aalib
|
||||
|
|
|
@ -277,6 +277,7 @@ stdenv.mkDerivation ({
|
|||
inherit noSysDirs staticCompiler langJava
|
||||
libcCross crossMingw;
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ texinfo which gettext ]
|
||||
++ (optional (perl != null) perl)
|
||||
++ (optional javaAwtGtk pkgconfig);
|
||||
|
@ -287,7 +288,6 @@ stdenv.mkDerivation ({
|
|||
++ (optionals langJava [ boehmgc zip unzip ])
|
||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||
++ (optionals (targetPlatform != hostPlatform) [targetPackages.stdenv.cc.bintools])
|
||||
++ (optionals (buildPlatform != hostPlatform) [buildPackages.stdenv.cc])
|
||||
++ (optionals langAda [gnatboot])
|
||||
++ (optionals langVhdl [gnat])
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ stdenv.mkDerivation ({
|
|||
|
||||
outputs = [ "out" "bin" "dev" "static" ];
|
||||
|
||||
nativeBuildInputs = lib.optional (cross != null) buildPackages.stdenv.cc;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
buildInputs = lib.optionals withGd [ gd libpng ];
|
||||
|
||||
# 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" ];
|
||||
passthru.static = self.out;
|
||||
|
||||
nativeBuildInputs = [ m4 ]
|
||||
++ stdenv.lib.optional (buildPlatform != hostPlatform) buildPackages.stdenv.cc;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ m4 ];
|
||||
|
||||
configureFlags =
|
||||
# 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>/' \;
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook264 bison buildPackages.stdenv.cc ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ autoreconfHook264 bison ];
|
||||
buildInputs = [ libiberty ];
|
||||
# dis-asm.h includes bfd.h
|
||||
propagatedBuildInputs = [ libbfd ];
|
||||
|
|
|
@ -37,10 +37,11 @@ stdenv.mkDerivation rec {
|
|||
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
|
||||
CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
] ++ lib.optionals (buildPlatform != hostPlatform) [
|
||||
buildPackages.ncurses buildPackages.stdenv.cc
|
||||
buildPackages.ncurses
|
||||
];
|
||||
buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm;
|
||||
|
||||
|
|
|
@ -65,7 +65,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "out" "info" "man" ];
|
||||
|
||||
nativeBuildInputs = [ bison buildPackages.stdenv.cc ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ bison ];
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
inherit noSysDirs;
|
||||
|
|
|
@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
|
|||
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 ];
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@ stdenvNoCC.mkDerivation {
|
|||
|
||||
# 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.
|
||||
nativeBuildInputs = [ buildPackages.stdenv.cc perl ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
extraIncludeDirs = lib.optional hostPlatform.isPowerPC ["ppc"];
|
||||
|
||||
|
|
|
@ -68,10 +68,10 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
# Note: Bison is needed because the patches above modify parse.y.
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [bison]
|
||||
++ optional (texinfo != null) texinfo
|
||||
++ optional hostPlatform.isDarwin binutils
|
||||
++ optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
|
||||
++ optional hostPlatform.isDarwin binutils;
|
||||
|
||||
buildInputs = optional interactive readline70;
|
||||
|
||||
|
|
Loading…
Reference in a new issue