darwin packages: Get ready for cross

If things build fine with `stdenvNoCC`, let them use that. If tools
might be prefixed, prepare for that, either by directly splicing or just
using the env vars provided by the wrapper setup-hooks.

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
This commit is contained in:
John Ericson
2021-05-11 16:07:01 -04:00
co-authored by Dmitry Kalinkin
parent 912c8262b4
commit 7bba32a069
32 changed files with 213 additions and 186 deletions
@@ -1,7 +1,7 @@
{ lib, appleDerivation, IOKitSrcs, xnu, darwin-stubs }:
{ lib, appleDerivation', stdenv, IOKitSrcs, xnu, darwin-stubs }:
# Someday it'll make sense to split these out into their own packages, but today is not that day.
appleDerivation {
appleDerivation' stdenv {
srcs = lib.attrValues IOKitSrcs;
sourceRoot = ".";