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";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.9.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "podman-tui";
|
|
|
|
rev = "v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-0iI417mwmwph4wjuusaWY0kGtVsQy7i+eZvE1tYiINY=";
|
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" ];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
preCheck =
|
2022-11-21 17:40:18 +00:00
|
|
|
let
|
|
|
|
skippedTests = [
|
|
|
|
"TestDialogs"
|
|
|
|
];
|
|
|
|
in
|
2022-10-21 18:38:19 +00:00
|
|
|
''
|
2022-11-21 17:40:18 +00:00
|
|
|
export USER=$(whoami)
|
|
|
|
export HOME=/home/$USER
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
# Disable flaky tests
|
|
|
|
buildFlagsArray+=("-run" "[^(${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;
|
|
|
|
command = "podman-tui version";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|