mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
6ff8487dfc
https://github.com/containers/podman-tui/releases/tag/v0.9.1 diff: https://github.com/containers/podman-tui/compare/v0.9.0...v0.9.1
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, buildGoModule, testers, podman-tui }:
|
|
|
|
buildGoModule rec {
|
|
pname = "podman-tui";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "podman-tui";
|
|
rev = "v${version}";
|
|
hash = "sha256-0iI417mwmwph4wjuusaWY0kGtVsQy7i+eZvE1tYiINY=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
tags = [ "containers_image_openpgp" "remote" ]
|
|
++ lib.optional stdenv.isDarwin "darwin";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
preCheck =
|
|
let
|
|
skippedTests = [
|
|
"TestDialogs"
|
|
];
|
|
in
|
|
''
|
|
export USER=$(whoami)
|
|
export HOME=/home/$USER
|
|
|
|
# Disable flaky tests
|
|
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = podman-tui;
|
|
command = "podman-tui version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/containers/podman-tui";
|
|
description = "Podman Terminal UI";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
};
|
|
}
|