Merge pull request #133728 from alyssais/cargo-kcov

This commit is contained in:
Sandro 2021-08-16 15:26:55 +02:00 committed by GitHub
commit e16a1ca28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, kcov
}:
rustPlatform.buildRustPackage rec {
@ -17,6 +19,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0m5gfyjzzwd8wkbb388vmd785dy334x0migq3ssi7dlah9zx62bj";
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/cargo-kcov \
--prefix PATH : ${lib.makeBinPath [ kcov ]}
'';
meta = with lib; {
description = "Cargo subcommand to run kcov to get coverage report on Linux";
homepage = "https://github.com/kennytm/cargo-kcov";