Unverified Commit 87a7d35d authored by figsoda's avatar figsoda Committed by GitHub
Browse files

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

cargo-ndk: support Darwin builds
parents de44d290 c46eda3c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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;