1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/tools/virtualization/govc/default.nix
2024-06-25 01:03:01 +00:00

32 lines
742 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "govc";
version = "0.38.0";
subPackages = [ "govc" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "vmware";
repo = "govmomi";
sha256 = "sha256-ZwqDPtoR3jFV5h8Ufie5fmiTueu2twueFf6swrpdYq4=";
};
vendorHash = "sha256-1EAQMYaTEtfAiu7+UTkC7QZwSWC1Ihwj9leTd90T0ZU=";
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";
};
}