Merge pull request #232684 from ipetkov/cargo-ndk-darwin

cargo-ndk: support Darwin builds
This commit is contained in:
figsoda 2023-05-18 21:41:56 -04:00 committed by GitHub
commit 87a7d35d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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;
};
}

View File

@ -16378,7 +16378,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;