whoami: use finalAttrs pattern

This commit is contained in:
Defelo
2025-04-09 16:12:02 +02:00
parent 5099db4deb
commit 7b6f3c3afd
+4 -4
View File
@@ -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 ];
};
}
})