From 270d44021715335a0d88ab2f4d1fceade5164c77 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Fri, 11 Apr 2025 13:04:32 +0200 Subject: [PATCH] athens: use finalAttrs Signed-off-by: Paul Meyer --- pkgs/by-name/at/athens/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/at/athens/package.nix b/pkgs/by-name/at/athens/package.nix index f4aa1ef22121..236a7527f754 100644 --- a/pkgs/by-name/at/athens/package.nix +++ b/pkgs/by-name/at/athens/package.nix @@ -6,14 +6,14 @@ athens, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "athens"; version = "0.15.4"; src = fetchFromGitHub { owner = "gomods"; repo = "athens"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-6NBdif8rQ1aj4nTYXhrWyErzRv0q8WpIheRnb2FCnkU="; }; @@ -22,7 +22,7 @@ buildGoModule rec { env.CGO_ENABLED = "0"; ldflags = [ "-s" - "-X github.com/gomods/athens/pkg/build.version=${version}" + "-X github.com/gomods/athens/pkg/build.version=${finalAttrs.version}" ]; subPackages = [ "cmd/proxy" ]; @@ -47,4 +47,4 @@ buildGoModule rec { ]; platforms = platforms.unix; }; -} +})