apple_sdk_11_0: provide SDK-specific callPackage

This commit is contained in:
Randy Eckenrode 2022-07-06 19:40:34 -04:00
parent 4741402d54
commit 9659c7abce
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -1,4 +1,4 @@
{ stdenvNoCC, fetchurl, newScope, pkgs { stdenvNoCC, fetchurl, newScope, lib, pkgs
, stdenv, overrideCC , stdenv, overrideCC
, xar, cpio, python3, pbzx }: , xar, cpio, python3, pbzx }:
@ -56,6 +56,20 @@ let
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;
callPackage = newScope (lib.optionalAttrs stdenv.isDarwin rec {
inherit (pkgs.darwin.apple_sdk_11_0) stdenv;
darwin = pkgs.darwin.overrideScope (_: prev: {
inherit (prev.darwin.apple_sdk_11_0) Libsystem LibsystemCross libcharset libunwind objc4 configd IOKit Security;
apple_sdk = prev.darwin.apple_sdk_11_0;
CF = prev.darwin.apple_sdk_11_0.CoreFoundation;
});
xcodebuild = pkgs.xcbuild.override {
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) CoreServices CoreGraphics ImageIO;
inherit stdenv;
};
xcbuild = xcodebuild;
});
stdenv = stdenv =
let let
clang = stdenv.cc.override { clang = stdenv.cc.override {