2022-05-14 00:47:55 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-07-31 04:07:43 +00:00
|
|
|
|
2022-05-14 00:47:55 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "govc";
|
2022-05-14 00:47:55 +00:00
|
|
|
version = "0.28.0";
|
2018-02-16 19:27:14 +00:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2022-05-14 00:47:55 +00:00
|
|
|
sha256 = "sha256-uK1JsBJC9O8dEJbAnyeMoolKZ2WhEPsDo/is/I+gfHg=";
|
2018-02-16 19:27:14 +00:00
|
|
|
};
|
|
|
|
|
2022-05-14 00:47:55 +00:00
|
|
|
vendorSha256 = "sha256-jbGqQITAhyBLoDa3cKU5gK+4WGgoGSCyFtzeoXx8e7k=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
|
|
|
|
];
|
|
|
|
|
2018-02-16 19:27:14 +00:00
|
|
|
meta = {
|
|
|
|
description = "A vSphere CLI built on top of govmomi";
|
2020-04-01 01:11:51 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|