12 src = fetchFromGitHub {
15 rev = "refs/tags/${version}";
16 hash = "sha256-N3wKpWdG92cXH0TwAkcsld9TRrfPRkbw0uZY/X4d+xk=";
19 vendorHash = "sha256-/Em3hx5tiQjThLBPJDHGsqxUV3eXeymJ5pY9c601OW0=";
23 subPackages = [ "backend" ];
28 "-X github.com/deggja/netfetch/backend/cmd.Version=${version}"
31 nativeBuildInputs = [ installShellFiles ];
33 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
34 mv $out/bin/backend $out/bin/$pname
35 installShellCompletion --cmd $pname \
36 --bash <($out/bin/$pname completion bash) \
37 --fish <($out/bin/$pname completion fish) \
38 --zsh <($out/bin/$pname completion zsh)
42 homepage = "https://github.com/deggja/netfetch";
43 description = "Kubernetes tool for scanning clusters for network policies and identifying unprotected workloads";
44 license = lib.licenses.mit;
45 mainProgram = "netfetch";
46 maintainers = with lib.maintainers; [ banh-canh ];