nixpkgs/pkgs/applications/virtualization/podman-tui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-05 12:19:25 +00:00
{ lib, stdenv, fetchFromGitHub, buildGoModule, testers, podman-tui }:
2022-02-14 14:55:36 +00:00
buildGoModule rec {
pname = "podman-tui";
2022-11-05 12:19:25 +00:00
version = "0.7.0";
2022-02-14 14:55:36 +00:00
src = fetchFromGitHub {
owner = "containers";
repo = "podman-tui";
rev = "v${version}";
2022-11-05 12:19:25 +00:00
hash = "sha256-UhlhNmVPTOXVWpL4pxF5c6ZQj//pXrzZWlRUaKGSTSA=";
2022-02-14 14:55:36 +00:00
};
2022-11-05 12:19:25 +00:00
vendorHash = null;
2022-02-14 14:55:36 +00:00
2022-11-05 12:19:25 +00:00
CGO_ENABLED = 0;
2022-02-14 14:55:36 +00:00
2022-11-05 12:19:25 +00:00
tags = [ "containers_image_openpgp" "remote" ]
++ lib.optional stdenv.isDarwin "darwin";
2022-02-14 14:55:36 +00:00
ldflags = [ "-s" "-w" ];
2022-10-03 10:54:55 +00:00
preCheck =
2022-11-05 12:19:25 +00:00
let
skippedTests = [
"TestDialogs"
"TestNetdialogs"
];
in
2022-10-03 10:54:55 +00:00
''
2022-11-05 12:19:25 +00:00
export USER=$(whoami)
export HOME=/home/$USER
2022-10-03 10:54:55 +00:00
# Disable flaky tests
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
'';
2022-07-24 05:32:22 +00:00
passthru.tests.version = testers.testVersion {
2022-03-11 10:36:54 +00:00
package = podman-tui;
command = "podman-tui version";
version = "v${version}";
};
2022-02-14 14:55:36 +00:00
meta = with lib; {
homepage = "https://github.com/containers/podman-tui";
description = "Podman Terminal UI";
license = licenses.asl20;
maintainers = with maintainers; [ aaronjheng ];
};
}