Merge pull request #133728 from alyssais/cargo-kcov
This commit is contained in:
commit
e16a1ca28f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user