1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "pluto";
9 version = "5.22.1";
10
11 src = fetchFromGitHub {
12 owner = "FairwindsOps";
13 repo = "pluto";
14 rev = "v${version}";
15 hash = "sha256-mq18PUyVFhi3ePju6EvYg4VowwAHJwhvpI67BX8BqRY=";
16 };
17
18 vendorHash = "sha256-59mRVfQ2rduTvIJE1l/j3K+PY3OEMfNpjjYg3hqNUhs=";
19
20 ldflags = [
21 "-w"
22 "-s"
23 "-X main.version=v${version}"
24 ];
25
26 __darwinAllowLocalNetworking = true; # for tests
27
28 meta = with lib; {
29 homepage = "https://github.com/FairwindsOps/pluto";
30 description = "Find deprecated Kubernetes apiVersions";
31 mainProgram = "pluto";
32 license = licenses.asl20;
33 maintainers = with maintainers; [
34 peterromfeldhk
35 kashw2
36 ];
37 };
38}