2022-05-14 02:47:55 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-07-31 06:07:43 +02:00
|
|
|
|
2022-05-14 02:47:55 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "govc";
|
2023-03-22 18:07:38 +01:00
|
|
|
version = "0.30.4";
|
2018-02-16 20:27:14 +01:00
|
|
|
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware";
|
|
|
|
repo = "govmomi";
|
2023-03-22 18:07:38 +01:00
|
|
|
sha256 = "sha256-lYiyZ2sY58bzUtqcM6WIsooLldQAxibASM7xXKAeqJM=";
|
2018-02-16 20:27:14 +01:00
|
|
|
};
|
|
|
|
|
2023-01-30 21:55:00 +01:00
|
|
|
vendorHash = "sha256-jbGqQITAhyBLoDa3cKU5gK+4WGgoGSCyFtzeoXx8e7k=";
|
2022-05-14 02:47:55 +02:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
|
|
|
|
];
|
|
|
|
|
2018-02-16 20:27:14 +01:00
|
|
|
meta = {
|
|
|
|
description = "A vSphere CLI built on top of govmomi";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/vmware/govmomi/tree/master/govc";
|
2018-02-16 20:27:14 +01:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ nicknovitski ];
|
|
|
|
};
|
|
|
|
}
|