From 86f4249a7af4b62c2c9334a678888513aef160aa Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 22 Mar 2025 15:57:01 +0000 Subject: [PATCH] gotestsum: 1.12.0-unstable-2024-09-17 -> 1.12.1 --- pkgs/by-name/go/gotestsum/package.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/go/gotestsum/package.nix b/pkgs/by-name/go/gotestsum/package.nix index 810fe5438fe8..11a808c00534 100644 --- a/pkgs/by-name/go/gotestsum/package.nix +++ b/pkgs/by-name/go/gotestsum/package.nix @@ -3,41 +3,36 @@ fetchFromGitHub, buildGoModule, }: -let - version = "1.12.0"; -in -buildGoModule { +buildGoModule (finalAttrs: { pname = "gotestsum"; - - # move back to stable releases when build is successful - version = "${version}-unstable-2024-09-17"; + version = "1.12.1"; src = fetchFromGitHub { owner = "gotestyourself"; repo = "gotestsum"; - rev = "2f61a73f997821b2e5a1823496e8362630e213f9"; - hash = "sha256-5zgchATcpoM4g5Mxex9wYanzrR0Pie9GYqx48toORkM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-nIdGon14bAaSxUmJNlpLztQVbA8SJ76+Ve46gbM0awk="; }; - vendorHash = "sha256-DR4AyEhgD71hFFEAnPfSxaWYFFV7FlPugZBHUjDynEE="; + vendorHash = "sha256-x48jjd6cIX/M8U+5QwrKalt1iLgeQKeJItLJsxXrPgY="; doCheck = false; ldflags = [ "-s" "-w" - "-X gotest.tools/gotestsum/cmd.version=${version}" + "-X gotest.tools/gotestsum/cmd.version=${finalAttrs.version}" ]; subPackages = [ "." ]; meta = { homepage = "https://github.com/gotestyourself/gotestsum"; - changelog = "https://github.com/gotestyourself/gotestsum/releases/tag/v${version}"; + changelog = "https://github.com/gotestyourself/gotestsum/releases/tag/v${finalAttrs.version}"; description = "Human friendly `go test` runner"; mainProgram = "gotestsum"; platforms = with lib.platforms; linux ++ darwin; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ isabelroses ]; }; -} +})