2022-05-14 01:47:55 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-07-31 05:07:43 +01:00
|
|
|
|
2022-05-14 01:47:55 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "govc";
|
2024-06-25 02:03:01 +01:00
|
|
|
version = "0.38.0";
|
2018-02-16 19:27:14 +00:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2024-06-25 02:03:01 +01:00
|
|
|
sha256 = "sha256-ZwqDPtoR3jFV5h8Ufie5fmiTueu2twueFf6swrpdYq4=";
|
2018-02-16 19:27:14 +00:00
|
|
|
};
|
|
|
|
|
2024-03-08 01:52:35 +00:00
|
|
|
vendorHash = "sha256-1EAQMYaTEtfAiu7+UTkC7QZwSWC1Ihwj9leTd90T0ZU=";
|
2022-05-14 01:47:55 +01:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
|
|
|
|
];
|
|
|
|
|
2018-02-16 19:27:14 +00:00
|
|
|
meta = {
|
|
|
|
description = "VSphere CLI built on top of govmomi";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/vmware/govmomi/tree/master/govc";
|
2018-02-16 19:27:14 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ nicknovitski ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "govc";
|
2018-02-16 19:27:14 +00:00
|
|
|
};
|
|
|
|
}
|