2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, pkg-config
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, btrfs-progs
|
|
|
|
, gpgme
|
2022-03-30 09:31:56 +00:00
|
|
|
, libassuan
|
2022-02-20 05:27:41 +00:00
|
|
|
, lvm2
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2022-03-30 09:31:56 +00:00
|
|
|
, podman-tui
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "podman-tui";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.3.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "podman-tui";
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-Xc6F87evQiv4jRbxxRBzJBeI8653HvlQL+UwcVWY0wk=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
btrfs-progs
|
|
|
|
gpgme
|
2022-03-30 09:31:56 +00:00
|
|
|
libassuan
|
2022-02-20 05:27:41 +00:00
|
|
|
lvm2
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-03-30 09:31:56 +00:00
|
|
|
package = podman-tui;
|
|
|
|
command = "podman-tui version";
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/containers/podman-tui";
|
|
|
|
description = "Podman Terminal UI";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|