podman-tui: use finalAttrs (#412892)

This commit is contained in:
Aleksana 2025-06-01 23:44:42 +08:00 committed by GitHub
commit 37e673cd1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,17 +4,16 @@
fetchFromGitHub, fetchFromGitHub,
buildGoModule, buildGoModule,
testers, testers,
podman-tui,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "podman-tui"; pname = "podman-tui";
version = "1.6.0"; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "containers"; owner = "containers";
repo = "podman-tui"; repo = "podman-tui";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-t9VhDl4pBW5H5RhpskU8Us9NxpPJmyishKROvbAc2V0="; hash = "sha256-t9VhDl4pBW5H5RhpskU8Us9NxpPJmyishKROvbAc2V0=";
}; };
@ -43,9 +42,9 @@ buildGoModule rec {
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = podman-tui; package = finalAttrs.finalPackage;
command = "HOME=$(mktemp -d) podman-tui version"; command = "HOME=$(mktemp -d) podman-tui version";
version = "v${version}"; version = "v${finalAttrs.version}";
}; };
meta = { meta = {
@ -55,4 +54,4 @@ buildGoModule rec {
maintainers = with lib.maintainers; [ aaronjheng ]; maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "podman-tui"; mainProgram = "podman-tui";
}; };
} })