Unverified Commit 7b6f3c3a authored by Defelo's avatar Defelo
Browse files

whoami: use finalAttrs pattern

parent 5099db4d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})