ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
35 lines
774 B
Nix
35 lines
774 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";
|
|
mainProgram = "cargo-ndk";
|
|
homepage = "https://github.com/bbqsrc/cargo-ndk";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ mglolenstine ];
|
|
};
|
|
}
|
|
|