mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
let
|
|
version = "1.12.0";
|
|
in
|
|
buildGoModule {
|
|
pname = "gotestsum";
|
|
|
|
# move back to stable releases when build is successful
|
|
version = "${version}-unstable-2024-09-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gotestyourself";
|
|
repo = "gotestsum";
|
|
rev = "2f61a73f997821b2e5a1823496e8362630e213f9";
|
|
hash = "sha256-5zgchATcpoM4g5Mxex9wYanzrR0Pie9GYqx48toORkM=";
|
|
};
|
|
|
|
vendorHash = "sha256-DR4AyEhgD71hFFEAnPfSxaWYFFV7FlPugZBHUjDynEE=";
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X gotest.tools/gotestsum/cmd.version=${version}"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/gotestyourself/gotestsum";
|
|
changelog = "https://github.com/gotestyourself/gotestsum/releases/tag/v${version}";
|
|
description = "Human friendly `go test` runner";
|
|
mainProgram = "gotestsum";
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ isabelroses ];
|
|
};
|
|
}
|