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

30 lines
767 B
Nix
Raw Normal View History

2019-08-31 01:09:32 -07:00
{ stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gotestsum";
2020-10-18 03:28:18 -07:00
version = "0.5.4";
2019-08-31 01:09:32 -07:00
src = fetchFromGitHub {
owner = "gotestyourself";
repo = "gotestsum";
rev = "v${version}";
2020-10-18 03:28:18 -07:00
sha256 = "1nmx91a5faixj1pzg9wbmxn8z1mphmdcvd6lajqy1ds21fzn2g1i";
2019-08-31 01:09:32 -07:00
};
2020-10-18 03:28:18 -07:00
vendorSha256 = "02av4z3lxfb6xrv3ij1alf5k8xhxz0dasnf2farbcszz021bzfrq";
2020-03-17 23:42:23 -07:00
doCheck = false;
2020-03-17 23:42:23 -07:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-08-31 01:09:32 -07:00
2020-09-04 21:20:00 -07:00
subPackages = [ "." ];
2019-08-31 01:09:32 -07: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 ];
};
}