2023-08-30 16:13:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gcov2lcov";
|
2024-11-29 19:33:32 +00:00
|
|
|
version = "1.1.1";
|
2023-08-30 16:13:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jandelgado";
|
|
|
|
repo = "gcov2lcov";
|
|
|
|
rev = "v${version}";
|
2024-11-29 19:33:32 +00:00
|
|
|
hash = "sha256-ifXpT5jGNaStqvzP5Rq6Hf6PFhpiKMRC+eSYOZfzt+s=";
|
2023-08-30 16:13:03 +00:00
|
|
|
};
|
|
|
|
|
2024-10-13 08:13:06 +00:00
|
|
|
vendorHash = "sha256-/2OIBWXbNch6lmw0C1jkyJfNefJXOVG9/jNW8CYHTsc=";
|
2023-08-30 16:13:03 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
# Some checks depend on looking up vcs root
|
|
|
|
checkPhase = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert go coverage files to lcov format";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gcov2lcov";
|
2023-08-30 16:13:03 +00:00
|
|
|
homepage = "https://github.com/jandelgado/gcov2lcov";
|
|
|
|
changelog = "https://github.com/jandelgado/gcov2lcov/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ meain ];
|
|
|
|
};
|
|
|
|
}
|