podman-tui: 0.4.0 -> 0.5.0
This commit is contained in:
parent
4392899832
commit
df575524d4
@ -2,6 +2,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, btrfs-progs
|
, btrfs-progs
|
||||||
, gpgme
|
, gpgme
|
||||||
@ -12,15 +13,23 @@
|
|||||||
}:
|
}:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "podman-tui";
|
pname = "podman-tui";
|
||||||
version = "0.4.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "containers";
|
owner = "containers";
|
||||||
repo = "podman-tui";
|
repo = "podman-tui";
|
||||||
rev = "v${version}";
|
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;
|
vendorSha256 = null;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
@ -30,6 +39,10 @@ buildGoModule rec {
|
|||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=/home/$(whoami)
|
||||||
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = podman-tui;
|
package = podman-tui;
|
||||||
command = "podman-tui version";
|
command = "podman-tui version";
|
||||||
|
Loading…
Reference in New Issue
Block a user