Files
nixpkgs/pkgs/by-name/hu/hubble/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.4 KiB
Nix

{
stdenv,
lib,
buildGo124Module,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
}:
buildGo124Module rec {
pname = "hubble";
version = "1.17.2";
src = fetchFromGitHub {
owner = "cilium";
repo = "hubble";
tag = "v${version}";
hash = "sha256-ZkowUftSEGo+UjYM+kk3tQJc8QJgoJATeIKPwu2ikQ4=";
};
nativeBuildInputs = [
installShellFiles
];
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X=github.com/cilium/cilium/hubble/pkg.GitBranch=none"
"-X=github.com/cilium/cilium/hubble/pkg.GitHash=none"
"-X=github.com/cilium/cilium/hubble/pkg.Version=${version}"
];
doCheck = true;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd hubble \
--bash <($out/bin/hubble completion bash) \
--fish <($out/bin/hubble completion fish) \
--zsh <($out/bin/hubble completion zsh)
'';
meta = {
description = "Network, Service & Security Observability for Kubernetes using eBPF";
homepage = "https://github.com/cilium/hubble/";
changelog = "https://github.com/cilium/hubble/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
humancalico
bryanasdev000
FKouhai
];
mainProgram = "hubble";
};
}