mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
50 lines
910 B
Nix
50 lines
910 B
Nix
{ lib
|
|
, pkg-config
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, btrfs-progs
|
|
, gpgme
|
|
, libassuan
|
|
, lvm2
|
|
, testVersion
|
|
, podman-tui
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "podman-tui";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "podman-tui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-y5bFr31CQ4JES6tjvThyy7qmoKFC59uwtDMG5r+r8K4=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
btrfs-progs
|
|
gpgme
|
|
libassuan
|
|
lvm2
|
|
];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests.version = testVersion {
|
|
package = podman-tui;
|
|
command = "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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|