2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "govc";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.35.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-ILmQNTHdt1rD2/cXEHlYWvXs4puNgRsrRtJmdz15zg0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-kju7wbp/LAsh4kv6edmy8+jpbeQ/OatqPwlY3Y5O9iQ=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A vSphere CLI built on top of govmomi";
|
|
|
|
homepage = "https://github.com/vmware/govmomi/tree/master/govc";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ nicknovitski ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "govc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|