2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2019-08-31 10:09:32 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotestsum";
|
2021-07-24 21:00:38 +02:00
|
|
|
version = "1.7.0";
|
2019-08-31 10:09:32 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gotestyourself";
|
|
|
|
repo = "gotestsum";
|
|
|
|
rev = "v${version}";
|
2021-07-24 21:00:38 +02:00
|
|
|
sha256 = "sha256-nZaVi39dOytJTM69xpl+d9XoUt+yHdndPgY2ggfNeMQ=";
|
2019-08-31 10:09:32 +02:00
|
|
|
};
|
|
|
|
|
2021-07-24 21:00:38 +02:00
|
|
|
vendorSha256 = "sha256-wP5y8Ec6eSe+rdMEQQdX0fFTQ0HWuiyBRHxGlraZd+o=";
|
2020-03-18 07:42:23 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-25 01:49:06 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X gotest.tools/gotestsum/cmd.version=${version}" ];
|
2019-08-31 10:09:32 +02:00
|
|
|
|
2020-09-05 06:20:00 +02:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-08-31 10:09:32 +02:00
|
|
|
homepage = "https://github.com/gotestyourself/gotestsum";
|
|
|
|
description = "A human friendly `go test` runner";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ endocrimes ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|