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-01-13 08:15:51 +00:00
|
|
|
version = "0.34.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-c31omDUjd5VywvYNLTjk5FQlqNRnFPLJ0eVEJLdF6N0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-1Y2Q2Ep3aqhUCSWey+sD4m7CgVEjlPt6ri3OKV8eERU=";
|
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
|
|
|
};
|
|
|
|
}
|