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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
742 B
Nix
Raw Normal View History

2022-05-14 01:47:55 +01:00
{ lib, fetchFromGitHub, buildGoModule }:
2022-05-14 01:47:55 +01:00
buildGoModule rec {
pname = "govc";
2024-06-25 02:03:01 +01:00
version = "0.38.0";
2018-02-16 19:27:14 +00:00
subPackages = [ "govc" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "vmware";
repo = "govmomi";
2024-06-25 02:03:01 +01:00
sha256 = "sha256-ZwqDPtoR3jFV5h8Ufie5fmiTueu2twueFf6swrpdYq4=";
2018-02-16 19:27:14 +00:00
};
2024-03-08 01:52:35 +00:00
vendorHash = "sha256-1EAQMYaTEtfAiu7+UTkC7QZwSWC1Ihwj9leTd90T0ZU=";
2022-05-14 01:47:55 +01:00
ldflags = [
"-s"
"-w"
"-X github.com/vmware/govmomi/govc/flags.BuildVersion=${version}"
];
2018-02-16 19:27:14 +00:00
meta = {
description = "VSphere CLI built on top of govmomi";
homepage = "https://github.com/vmware/govmomi/tree/master/govc";
2018-02-16 19:27:14 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nicknovitski ];
2023-11-23 21:09:35 +00:00
mainProgram = "govc";
2018-02-16 19:27:14 +00:00
};
}