mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
31 lines
720 B
Nix
31 lines
720 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "govc";
|
|
version = "0.30.0";
|
|
|
|
subPackages = [ "govc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "vmware";
|
|
repo = "govmomi";
|
|
sha256 = "sha256-BMkty2H42fAILw/zRiAWE5cOX9WCZIs0503QODLHqxo=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-jbGqQITAhyBLoDa3cKU5gK+4WGgoGSCyFtzeoXx8e7k=";
|
|
|
|
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 ];
|
|
};
|
|
}
|