2022-11-21 17:40:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildGoModule, testers, podman-tui }:
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "podman-tui";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.1.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "podman-tui";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-my/y2cgF7F0wk5VJKfmqotBrV3HPmRQGPjlSdMe7wXk=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
vendorHash = null;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
CGO_ENABLED = 0;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
tags = [ "containers_image_openpgp" "remote" ]
|
|
|
|
++ lib.optional stdenv.isDarwin "darwin";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
preCheck = ''
|
|
|
|
export USER=$(whoami)
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkFlags =
|
2022-11-21 17:40:18 +00:00
|
|
|
let
|
|
|
|
skippedTests = [
|
2024-05-15 15:35:15 +00:00
|
|
|
# Disable flaky tests
|
2022-11-21 17:40:18 +00:00
|
|
|
"TestDialogs"
|
2024-04-21 15:54:59 +00:00
|
|
|
"TestVoldialogs"
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
in
|
2024-05-15 15:35:15 +00:00
|
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-03-30 09:31:56 +00:00
|
|
|
package = podman-tui;
|
2024-04-21 15:54:59 +00:00
|
|
|
command = "HOME=$(mktemp -d) podman-tui version";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "v${version}";
|
|
|
|
};
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/containers/podman-tui";
|
|
|
|
description = "Podman Terminal UI";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "podman-tui";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
}
|