nixpkgs/pkgs/development/tools/gocover-cobertura/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
700 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gocover-cobertura";
version = "1.2.0";
src = fetchFromGitHub {
owner = "boumenot";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nbwqfObU1tod5gWa9UbhmS6CpLLilvFyvNJ6XjeR8Qc=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/boumenot/gocover-cobertura";
description = "This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from go tool cover output.";
mainProgram = "gocover-cobertura";
license = licenses.mit;
maintainers = with maintainers; [ hmajid2301 ];
};
}