depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-ndk/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

34 lines
743 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreGraphics
, Foundation
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-ndk";
version = "3.4.0";
src = fetchFromGitHub {
owner = "bbqsrc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-PdRiiGRYdbnViK34PnYoLFteipoK2arw79IVOQnJKNE=";
};
cargoHash = "sha256-6rQwyogm62xx9JmDWfRtCpF1Rqjtt5SDYUdtZBfryuw=";
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 ];
};
}