nixpkgs/pkgs/applications/virtualization/podman-tui/default.nix

50 lines
910 B
Nix
Raw Normal View History

2022-02-14 15:55:36 +01:00
{ lib
, pkg-config
, fetchFromGitHub
, buildGoModule
, btrfs-progs
, gpgme
2022-03-11 11:36:54 +01:00
, libassuan
2022-02-14 15:55:36 +01:00
, lvm2
2022-03-11 11:36:54 +01:00
, testVersion
, podman-tui
2022-02-14 15:55:36 +01:00
}:
buildGoModule rec {
pname = "podman-tui";
2022-03-31 01:19:48 +02:00
version = "0.3.0";
2022-02-14 15:55:36 +01:00
src = fetchFromGitHub {
owner = "containers";
repo = "podman-tui";
rev = "v${version}";
2022-03-31 01:19:48 +02:00
sha256 = "sha256-1WbDmnKyFosp4Kz9QINr3lOR/wD0UW2QZf7nAAaoClM=";
2022-02-14 15:55:36 +01:00
};
vendorSha256 = null;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
btrfs-progs
gpgme
2022-03-11 11:36:54 +01:00
libassuan
2022-02-14 15:55:36 +01:00
lvm2
];
ldflags = [ "-s" "-w" ];
2022-03-11 11:36:54 +01:00
passthru.tests.version = testVersion {
package = podman-tui;
command = "podman-tui version";
version = "v${version}";
};
2022-02-14 15:55:36 +01: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;
};
}