d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
30 lines
718 B
Nix
30 lines
718 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "govc";
|
|
version = "0.30.7";
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "vmware";
|
|
repo = "govmomi";
|
|
sha256 = "sha256-8cBS92O5AEeXQyLwOTAWbjvj1oPJiHLBooRgl5pt0Mk=";
|
|
};
|
|
|
|
vendorHash = "sha256-iLmQdjN0EXJuwC3NT5FKdHhJ4KvNAvnsBGAO9bypdqg=";
|
|
|
|
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 ];
|
|
};
|
|
}
|