depot/third_party/nixpkgs/pkgs/by-name/tp/tparse/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

35 lines
723 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
let
pname = "tparse";
version = "0.15.0";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "mfridman";
repo = pname;
rev = "v${version}";
hash = "sha256-CxoVu3WH2I/1wT5o/RGIrGFrGCQOC4vcUKMiH/Gv3aY=";
};
vendorHash = "sha256-soIti6o8BUnarPf5/bcMJKdEG0oRpDLMkQM6RlbZQ5I=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
meta = {
description = "CLI tool for summarizing go test output. Pipe friendly. CI/CD friendly";
mainProgram = "tparse";
homepage = "https://github.com/mfridman/tparse";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ obreitwi ];
};
}