apple misc pkgs: buildInputs -> nativeBuildInputs

This commit is contained in:
John Ericson 2017-08-10 18:57:42 -04:00
parent 42e639066b
commit 7a22c01b54
9 changed files with 16 additions and 13 deletions

View file

@ -1,7 +1,7 @@
{ stdenv, cctools, appleDerivation }:
appleDerivation {
buildInputs = [ cctools ];
nativeBuildInputs = [ cctools ];
postPatch = ''
substituteInPlace makefile \

View file

@ -3,7 +3,7 @@
appleDerivation {
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ ed unifdef ];
nativeBuildInputs = [ ed unifdef ];
installPhase = ''
export SRCROOT=$PWD
@ -12,4 +12,4 @@ appleDerivation {
export PRIVATE_HEADERS_FOLDER_PATH=include
bash xcodescripts/headers.sh
'';
}
}

View file

@ -3,7 +3,7 @@
appleDerivation {
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ ed unifdef ];
nativeBuildInputs = [ ed unifdef ];
# TODO: asl.h actually comes from syslog project now
installPhase = ''

View file

@ -5,7 +5,7 @@
appleDerivation rec {
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ cpio ];
nativeBuildInputs = [ cpio ];
installPhase = ''
export NIX_ENFORCE_PURITY=

View file

@ -16,7 +16,8 @@ let recentAdvCmds = fetchzip {
};
in appleDerivation {
buildInputs = [ bsdmake perl yacc flex ];
nativeBuildInputs = [ bsdmake perl yacc flex ];
buildInputs = [ flex ];
patchPhase = ''
substituteInPlace BSDmakefile \

View file

@ -1,7 +1,7 @@
{ stdenv, appleDerivation, yacc, flex }:
appleDerivation {
buildInputs = [ yacc flex ];
nativeBuildInputs = [ yacc flex ];
buildPhase = ''
cd migcom.tproj
@ -41,4 +41,4 @@ appleDerivation {
--replace '/bin/rmdir' "rmdir" \
--replace 'C=''${MIGCC}' "C=cc"
'';
}
}

View file

@ -1,7 +1,7 @@
{ stdenv, appleDerivation, fetchurl, fetchpatch, makeWrapper }:
appleDerivation {
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
patchPhase = ''
substituteInPlace mk/bsd.prog.mk \
@ -27,9 +27,9 @@ appleDerivation {
for file in $(find . -name '*.c'); do
obj="$(basename "$file" .c).o"
objs+=("$obj")
cc -c "$file" -o "$obj" -DDEFSHELLNAME='"sh"' -D__FBSDID=__RCSID -mdynamic-no-pic -g
$CC -c "$file" -o "$obj" -DDEFSHELLNAME='"sh"' -D__FBSDID=__RCSID -mdynamic-no-pic -g
done
cc "''${objs[@]}" -o bsdmake
$CC "''${objs[@]}" -o bsdmake
'';
installPhase = ''

View file

@ -3,7 +3,8 @@
appleDerivation {
meta.broken = stdenv.cc.nativeLibc;
buildInputs = [ launchd bootstrap_cmds ppp IOKit eap8021x ];
nativeBuildInputs = [ bootstrap_cmds ];
buildInputs = [ launchd ppp IOKit eap8021x ];
propagatedBuildInputs = [ Security ];

View file

@ -29,7 +29,8 @@ let
sha256 = "0l45mvyags56jfi24rawms8j2ihbc45mq7v13pkrrwppghqrdn52";
};
buildInputs = [ autoconf automake libtool_2 libuuid ] ++
nativeBuildInputs = [ autoconf automake libtool_2 ];
buildInputs = [ libuuid ] ++
# Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)
stdenv.lib.optionals (!stdenv.isDarwin) [ llvm clang ] ++
stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ];