podman-tui: 0.4.0 -> 0.5.0

This commit is contained in:
Aaron Jheng 2022-07-24 05:32:22 +00:00
parent 4392899832
commit df575524d4
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -2,6 +2,7 @@
, stdenv
, pkg-config
, fetchFromGitHub
, fetchpatch
, buildGoModule
, btrfs-progs
, gpgme
@ -12,15 +13,23 @@
}:
buildGoModule rec {
pname = "podman-tui";
version = "0.4.0";
version = "0.5.0";
src = fetchFromGitHub {
owner = "containers";
repo = "podman-tui";
rev = "v${version}";
sha256 = "sha256-2WugN5JdTkz3OOt3ggzT7HwMXy1jxn85RwF7409D8m8=";
sha256 = "sha256-XLC1DqOME9xMF4z+cOPe5H60JnxU9gGaSOQQIofdtj8=";
};
patches = [
# Fix flaky tests. See https://github.com/containers/podman-tui/pull/129.
(fetchpatch {
url = "https://github.com/containers/podman-tui/commit/7fff27e95a3891163da79d86bbc796f29b523f80.patch";
sha256 = "sha256-mETDXoMLq7vb8Qhpz/CmNG1LmY2DTaogI10Qav/qN9Q=";
})
];
vendorSha256 = null;
nativeBuildInputs = [ pkg-config ];
@ -30,6 +39,10 @@ buildGoModule rec {
ldflags = [ "-s" "-w" ];
preCheck = ''
export HOME=/home/$(whoami)
'';
passthru.tests.version = testers.testVersion {
package = podman-tui;
command = "podman-tui version";