51 lines
		
	
	
		
			1017 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1017 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  rustPlatform,
 | 
						|
  fetchFromGitHub,
 | 
						|
  pkg-config,
 | 
						|
  openssl,
 | 
						|
  stdenv,
 | 
						|
  curl,
 | 
						|
}:
 | 
						|
 | 
						|
rustPlatform.buildRustPackage rec {
 | 
						|
  pname = "cargo-tarpaulin";
 | 
						|
  version = "0.32.3";
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "xd009642";
 | 
						|
    repo = "tarpaulin";
 | 
						|
    rev = version;
 | 
						|
    hash = "sha256-sKb+e2aROl1IBUUR0LB8aHxQfEOkbqz9WYqUWVNj8W8=";
 | 
						|
  };
 | 
						|
 | 
						|
  useFetchCargoVendor = true;
 | 
						|
  cargoHash = "sha256-dPWdBNrY57tLV/YTcnM7SAQs6mfRynZZelNao1tNj2c=";
 | 
						|
 | 
						|
  nativeBuildInputs = [
 | 
						|
    pkg-config
 | 
						|
  ];
 | 
						|
  buildInputs =
 | 
						|
    [ openssl ]
 | 
						|
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
 | 
						|
      curl
 | 
						|
    ];
 | 
						|
 | 
						|
  doCheck = false;
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    description = "Code coverage tool for Rust projects";
 | 
						|
    mainProgram = "cargo-tarpaulin";
 | 
						|
    homepage = "https://github.com/xd009642/tarpaulin";
 | 
						|
    changelog = "https://github.com/xd009642/tarpaulin/blob/${src.rev}/CHANGELOG.md";
 | 
						|
    license = with licenses; [
 | 
						|
      mit # or
 | 
						|
      asl20
 | 
						|
    ];
 | 
						|
    maintainers = with maintainers; [
 | 
						|
      figsoda
 | 
						|
      hugoreeves
 | 
						|
    ];
 | 
						|
  };
 | 
						|
}
 |