Merge pull request #232684 from ipetkov/cargo-ndk-darwin
cargo-ndk: support Darwin builds
This commit is contained in:
commit
87a7d35d99
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user