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

30 lines
755 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-08-31 01:09:32 -07:00
buildGoModule rec {
pname = "gotestsum";
2021-02-22 20:04:49 -08:00
version = "1.6.2";
2019-08-31 01:09:32 -07:00
src = fetchFromGitHub {
owner = "gotestyourself";
repo = "gotestsum";
rev = "v${version}";
2021-02-22 20:04:49 -08:00
sha256 = "sha256-/DpsB3MS0iPYFSug3RTWOprB8tclVP6v3dbS3mC3S+g=";
2019-08-31 01:09:32 -07:00
};
2021-02-22 20:04:49 -08:00
vendorSha256 = "sha256-AOdWv0PkDi8o5V71DVzAd/sRibbMf3CkqmJGmuxHtuc=";
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 = [ "." ];
meta = with lib; {
2019-08-31 01:09:32 -07: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 ];
};
}