depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-ndk/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

35 lines
787 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreGraphics
, Foundation
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-ndk";
version = "3.5.7";
src = fetchFromGitHub {
owner = "bbqsrc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-tzjiq1jjluWqTl+8MhzFs47VRp3jIRJ7EOLhUP8ydbM=";
};
cargoHash = "sha256-UthI01fLC35BPp550LaDLoo1kjisUmQZqSud8JM/kqM=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreGraphics
Foundation
];
meta = with lib; {
description = "Cargo extension for building Android NDK projects";
mainProgram = "cargo-ndk";
homepage = "https://github.com/bbqsrc/cargo-ndk";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ mglolenstine ];
};
}