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

30 lines
767 B
Nix
Raw Normal View History

2019-08-31 08:09:32 +00:00
{ stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gotestsum";
2020-10-29 17:31:59 +00:00
version = "0.6.0";
2019-08-31 08:09:32 +00:00
src = fetchFromGitHub {
owner = "gotestyourself";
repo = "gotestsum";
rev = "v${version}";
2020-10-29 17:31:59 +00:00
sha256 = "0w0s2qvwnb69s18gvkkbwsx9zh7yi8ksnnrfpl8az8sybk6m1iaz";
2019-08-31 08:09:32 +00:00
};
2020-10-29 17:31:59 +00:00
vendorSha256 = "09cifc69z1ashjw1mqgbi0gh90h2sypqyl0jswxxcqk89ibgy3am";
2020-03-18 06:42:23 +00:00
doCheck = false;
2020-03-18 06:42:23 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-08-31 08:09:32 +00:00
2020-09-05 04:20:00 +00:00
subPackages = [ "." ];
2019-08-31 08:09:32 +00:00
meta = with stdenv.lib; {
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 ];
};
}