cargo-ndk: support Darwin builds

This commit is contained in:
Ivan Petkov
2023-05-18 11:56:29 -07:00
parent 48a0fb7aab
commit c46eda3c6c
2 changed files with 10 additions and 2 deletions
@@ -2,6 +2,8 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreGraphics
, Foundation
}:
rustPlatform.buildRustPackage rec {
@@ -17,12 +19,16 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-UEQ+6N7D1/+vhdzYthcTP1YuVEmo5llrpndKuwmrjKc=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreGraphics
Foundation
];
meta = with lib; {
description = "Cargo extension for building Android NDK projects";
homepage = "https://github.com/bbqsrc/cargo-ndk";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ mglolenstine ];
platforms = platforms.linux;
};
}
+3 -1
View File
@@ -16376,7 +16376,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-ndk = callPackage ../development/tools/rust/cargo-ndk { };
cargo-ndk = callPackage ../development/tools/rust/cargo-ndk {
inherit (darwin.apple_sdk.frameworks) CoreGraphics Foundation;
};
cargo-nextest = callPackage ../development/tools/rust/cargo-nextest {
inherit (darwin.apple_sdk.frameworks) Security;