From 1db0a84b4cc0f458a90406a062a55b0121d384ea Mon Sep 17 00:00:00 2001 From: MGlolenstine Date: Thu, 2 Feb 2023 08:39:34 +0100 Subject: [PATCH] cargo-ndk: init at 2.12.6 --- .../tools/rust/cargo-ndk/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-ndk/default.nix diff --git a/pkgs/development/tools/rust/cargo-ndk/default.nix b/pkgs/development/tools/rust/cargo-ndk/default.nix new file mode 100644 index 000000000000..03117e9c1f41 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-ndk/default.nix @@ -0,0 +1,28 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-ndk"; + version = "2.12.6"; + + src = fetchFromGitHub { + owner = "bbqsrc"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-VGdFIMyZhb7SDWAXgs7kFlblYCO4rLf+3/N7Mashc4o="; + }; + + cargoHash = "sha256-pv6t9oKj5tdQjpvBgj/Y11uKJIaIWcaA9ib/Id/s+qs="; + + 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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d53a39d57839..d582a0d7927f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15788,6 +15788,9 @@ with pkgs; cargo-msrv = callPackage ../development/tools/rust/cargo-msrv { inherit (darwin.apple_sdk.frameworks) Security; }; + + cargo-ndk = callPackage ../development/tools/rust/cargo-ndk { }; + cargo-nextest = callPackage ../development/tools/rust/cargo-nextest { inherit (darwin.apple_sdk.frameworks) Security; };