2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
30 lines
718 B
Nix
30 lines
718 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "govc";
|
|
version = "0.33.0";
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "vmware";
|
|
repo = "govmomi";
|
|
sha256 = "sha256-YY/rTrL6zEhZkeaYz2yG/h2s81IefClou4abbmQuDiU=";
|
|
};
|
|
|
|
vendorHash = "sha256-DBcovHOOfIy4dfi8U9zaCUzz5Zz8oIG44JCqMKtdxgg=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|