2023-02-02 08:39:34 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-05-18 20:56:29 +02:00
|
|
|
, CoreGraphics
|
|
|
|
, Foundation
|
2023-02-02 08:39:34 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-ndk";
|
2023-10-05 15:28:41 +02:00
|
|
|
version = "3.4.0";
|
2023-02-02 08:39:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bbqsrc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-05 15:28:41 +02:00
|
|
|
sha256 = "sha256-PdRiiGRYdbnViK34PnYoLFteipoK2arw79IVOQnJKNE=";
|
2023-02-02 08:39:34 +01:00
|
|
|
};
|
|
|
|
|
2023-10-05 15:28:41 +02:00
|
|
|
cargoHash = "sha256-6rQwyogm62xx9JmDWfRtCpF1Rqjtt5SDYUdtZBfryuw=";
|
2023-02-02 08:39:34 +01:00
|
|
|
|
2023-05-18 20:56:29 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreGraphics
|
|
|
|
Foundation
|
|
|
|
];
|
|
|
|
|
2023-02-02 08:39:34 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo extension for building Android NDK projects";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "cargo-ndk";
|
2023-02-02 08:39:34 +01:00
|
|
|
homepage = "https://github.com/bbqsrc/cargo-ndk";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ mglolenstine ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|