depot/third_party/nixpkgs/pkgs/tools/virtualization/govc/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

30 lines
718 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "govc";
version = "0.32.0";
subPackages = [ "govc" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "vmware";
repo = "govmomi";
sha256 = "sha256-GnMWgN6ZxxGU/tRAPIk2cvpsBiut97iPcU9920wepxM=";
};
vendorHash = "sha256-mf9ZYZEmqB/47JLHn8N3VDr57SXbFLubXnwfXj682FA=";
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 ];
};
}