From 7b6f3c3afdeb327afa9c16b8348e6ab304079d49 Mon Sep 17 00:00:00 2001 From: Defelo Date: Wed, 9 Apr 2025 16:12:02 +0200 Subject: [PATCH] whoami: use finalAttrs pattern --- pkgs/by-name/wh/whoami/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/wh/whoami/package.nix b/pkgs/by-name/wh/whoami/package.nix index 61cb8708fdcf..646b0d5a2c10 100644 --- a/pkgs/by-name/wh/whoami/package.nix +++ b/pkgs/by-name/wh/whoami/package.nix @@ -4,14 +4,14 @@ fetchFromGitHub, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "whoami"; version = "1.11.0"; src = fetchFromGitHub { owner = "traefik"; repo = "whoami"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-3jzLdCmmts/7S1Oxig9Dg3kRGh/H5l5UD7ztev0yvXY="; }; @@ -27,8 +27,8 @@ buildGoModule rec { description = "Tiny Go server that prints os information and HTTP request to output"; mainProgram = "whoami"; homepage = "https://github.com/traefik/whoami"; - changelog = "https://github.com/traefik/whoami/releases/tag/v${version}"; + changelog = "https://github.com/traefik/whoami/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dvcorreia ]; }; -} +})