diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-02-02 07:09:30 +0100 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2023-02-02 17:45:13 -0500 |
commit | ab368e702d21d2b6fac50c944f9adf137dec6d3d (patch) | |
tree | e05d1b0391f1befd8489ecc8723160f89eb25534 /pkgs/os-specific | |
parent | 214c68b096451fe17347285d107104d997d6181a (diff) |
darwin.apple_sdk_11_0.rustPlatform: init
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk-11.0/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix index dfa52606c8177..145c98496b49a 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix @@ -84,8 +84,13 @@ let inherit (pkgs.darwin.apple_sdk_11_0.frameworks) CoreServices CoreGraphics ImageIO; }; + rustPlatform = pkgs.makeRustPlatform { + inherit (pkgs.darwin.apple_sdk_11_0) stdenv; + inherit (pkgs) rustc cargo; + }; + callPackage = newScope (lib.optionalAttrs stdenv.isDarwin rec { - inherit (pkgs.darwin.apple_sdk_11_0) stdenv xcodebuild; + inherit (pkgs.darwin.apple_sdk_11_0) stdenv xcodebuild rustPlatform; 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; |