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";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.30.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-8cBS92O5AEeXQyLwOTAWbjvj1oPJiHLBooRgl5pt0Mk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
vendorHash = "sha256-iLmQdjN0EXJuwC3NT5FKdHhJ4KvNAvnsBGAO9bypdqg=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|