mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, buildGoModule, testers, podman-tui }:
|
|
|
|
buildGoModule rec {
|
|
pname = "podman-tui";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "podman-tui";
|
|
rev = "v${version}";
|
|
hash = "sha256-sJaiZJeT0oUAnSg9Kv8uMp1XoumumC3LB77lelmwSgw=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
tags = [ "containers_image_openpgp" "remote" ]
|
|
++ lib.optional stdenv.isDarwin "darwin";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
preCheck =
|
|
let
|
|
skippedTests = [
|
|
"TestDialogs"
|
|
"TestVoldialogs"
|
|
];
|
|
in
|
|
''
|
|
export HOME="$(mktemp -d)"
|
|
|
|
# Disable flaky tests
|
|
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = podman-tui;
|
|
command = "HOME=$(mktemp -d) 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 ];
|
|
mainProgram = "podman-tui";
|
|
};
|
|
}
|