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

28 lines
741 B
Nix
Raw Normal View History

2019-08-31 08:09:32 +00:00
{ stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gotestsum";
2020-08-02 02:09:48 +00:00
version = "0.5.2";
2019-08-31 08:09:32 +00:00
src = fetchFromGitHub {
owner = "gotestyourself";
repo = "gotestsum";
rev = "v${version}";
2020-08-02 02:09:48 +00:00
sha256 = "08bb865gl1ykqr7wm7a1jikjdlc2dqv1f3hllnwwr630c8y4k806";
2019-08-31 08:09:32 +00:00
};
2020-06-26 09:51:36 +00:00
vendorSha256 = "1injixhllv41glb3yz276gjrkiwwkfimrhb367d2pvjpzqmhplan";
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
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 ];
};
}