32 lines
		
	
	
		
			697 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			697 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   rustPlatform,
 | |
|   fetchFromGitHub,
 | |
| }:
 | |
| 
 | |
| rustPlatform.buildRustPackage rec {
 | |
|   pname = "cargo-ndk";
 | |
|   version = "3.5.7";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "bbqsrc";
 | |
|     repo = pname;
 | |
|     rev = "v${version}";
 | |
|     sha256 = "sha256-tzjiq1jjluWqTl+8MhzFs47VRp3jIRJ7EOLhUP8ydbM=";
 | |
|   };
 | |
| 
 | |
|   useFetchCargoVendor = true;
 | |
|   cargoHash = "sha256-Kt4GLvbGK42RjivLpL5W5z5YBfDP5B83mCulWz6Bisw=";
 | |
| 
 | |
|   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 ];
 | |
|   };
 | |
| }
 | 
