apple_sdk_11_0: expose 11.0 sdk stdenv as an attribute
This commit is contained in:
parent
d8f71776ff
commit
4741402d54
1 changed files with 17 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ stdenvNoCC, fetchurl, newScope, pkgs
|
{ stdenvNoCC, fetchurl, newScope, pkgs
|
||||||
|
, stdenv, overrideCC
|
||||||
, xar, cpio, python3, pbzx }:
|
, xar, cpio, python3, pbzx }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -54,5 +55,21 @@ let
|
||||||
# questionable aliases
|
# questionable aliases
|
||||||
configd = pkgs.darwin.apple_sdk.frameworks.SystemConfiguration;
|
configd = pkgs.darwin.apple_sdk.frameworks.SystemConfiguration;
|
||||||
IOKit = pkgs.darwin.apple_sdk.frameworks.IOKit;
|
IOKit = pkgs.darwin.apple_sdk.frameworks.IOKit;
|
||||||
|
|
||||||
|
stdenv =
|
||||||
|
let
|
||||||
|
clang = stdenv.cc.override {
|
||||||
|
bintools = stdenv.cc.bintools.override { libc = packages.Libsystem; };
|
||||||
|
libc = packages.Libsystem;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
if stdenv.isAarch64 then stdenv
|
||||||
|
else
|
||||||
|
(overrideCC stdenv clang).override {
|
||||||
|
targetPlatform = stdenv.targetPlatform // {
|
||||||
|
darwinMinVersion = "10.12";
|
||||||
|
darwinSdkVersion = "11.0";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in packages
|
in packages
|
||||||
|
|
Loading…
Reference in a new issue