lol
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule (finalAttrs: {
8 pname = "govc";
9 version = "0.52.0";
10
11 src = fetchFromGitHub {
12 owner = "vmware";
13 repo = "govmomi";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-Gd8Th9cEpPwKlJfjUkDjZXzOzl/nhr+GgPjGuIR6Xlg=";
16 };
17
18 vendorHash = "sha256-31n3pBAK/zZ7ZbQ9GxLNyO0Tw4K2xgvxKfPDb7x/lTk=";
19
20 sourceRoot = "${finalAttrs.src.name}/govc";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X github.com/vmware/govmomi/govc/flags.BuildVersion=${finalAttrs.version}"
26 ];
27
28 meta = {
29 description = "VSphere CLI built on top of govmomi";
30 homepage = "https://github.com/vmware/govmomi/tree/main/govc";
31 license = lib.licenses.asl20;
32 maintainers = with lib.maintainers; [ nicknovitski ];
33 mainProgram = "govc";
34 };
35})