mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
podman-tui: use finalAttrs (#412892)
This commit is contained in:
commit
37e673cd1d
1 changed files with 5 additions and 6 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue