depot/third_party/nixpkgs/pkgs/tools/virtualization/govc/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

31 lines
742 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "govc";
version = "0.43.0";
subPackages = [ "govc" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "vmware";
repo = "govmomi";
sha256 = "sha256-TLkSDi8s8zqUED76Bfznm3VLwUi0+tmUjbddqHlwiUQ=";
};
vendorHash = "sha256-C8NeTGPqzFe3UYB90sEui67e5wUsH/15rwkwahNTLHM=";
ldflags = [
"-s"
"-w"
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
];
meta = {
description = "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 ];
mainProgram = "govc";
};
}