58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
testers,
|
|
podman-tui,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "podman-tui";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "podman-tui";
|
|
rev = "v${version}";
|
|
hash = "sha256-HPn467lqHyT+I42J8Bs4lmUlNf/Pr2Grrmp6KCGvlwo=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
tags = [
|
|
"containers_image_openpgp"
|
|
"remote"
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin "darwin";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
checkFlags =
|
|
let
|
|
skippedTests = [
|
|
# Disable flaky tests
|
|
"TestDialogs"
|
|
"TestVoldialogs"
|
|
];
|
|
in
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = podman-tui;
|
|
command = "HOME=$(mktemp -d) podman-tui version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/containers/podman-tui";
|
|
description = "Podman Terminal UI";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ aaronjheng ];
|
|
mainProgram = "podman-tui";
|
|
};
|
|
}
|