nixpkgs/pkgs/development/tools/gotestsum/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
875 B
Nix
Raw Normal View History

2023-01-18 22:04:06 +00:00
{ lib
, fetchFromGitHub
, buildGoModule
}:
2019-08-31 08:09:32 +00:00
buildGoModule rec {
pname = "gotestsum";
2023-07-12 04:01:55 +00:00
version = "1.10.1";
2019-08-31 08:09:32 +00:00
src = fetchFromGitHub {
owner = "gotestyourself";
repo = "gotestsum";
2023-01-18 22:04:06 +00:00
rev = "refs/tags/v${version}";
2023-07-12 04:01:55 +00:00
hash = "sha256-Sq0ejnX7AJoPf3deBge8PMOq1NlMbw+Ljn145C5MQ+s=";
2019-08-31 08:09:32 +00:00
};
2023-01-18 01:05:01 +00:00
vendorHash = "sha256-zUqa6xlDV12ZV4N6+EZ7fLPsL8U+GB7boQ0qG9egvm0=";
2020-03-18 06:42:23 +00:00
doCheck = false;
2023-01-18 22:04:06 +00:00
ldflags = [
"-s"
"-w"
"-X gotest.tools/gotestsum/cmd.version=${version}"
];
2019-08-31 08:09:32 +00:00
2020-09-05 04:20:00 +00:00
subPackages = [ "." ];
meta = with lib; {
2019-08-31 08:09:32 +00:00
homepage = "https://github.com/gotestyourself/gotestsum";
2023-01-18 22:04:06 +00:00
changelog = "https://github.com/gotestyourself/gotestsum/releases/tag/v${version}";
2019-08-31 08:09:32 +00:00
description = "A human friendly `go test` runner";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.asl20;
maintainers = with maintainers; [ endocrimes ];
};
}