mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
hubble: 0.9.0 -> 0.10.0
- bump version - add upstream ldflags - add myself as a maintainer - add install check - disable tests to build - enable shell completions for unix-like
This commit is contained in:
parent
904740b13e
commit
8341401554
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
|
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "hubble";
|
pname = "hubble";
|
||||||
version = "0.9.0";
|
version = "0.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cilium";
|
owner = "cilium";
|
||||||
@ -13,11 +13,36 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s" "-w"
|
||||||
|
"-X github.com/cilium/hubble/pkg.GitBranch=none"
|
||||||
|
"-X github.com/cilium/hubble/pkg.GitHash=none"
|
||||||
|
"-X github.com/cilium/hubble/pkg.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Test fails at Test_getFlowsRequestWithInvalidRawFilters in github.com/cilium/hubble/cmd/observe
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/178976
|
||||||
|
# https://github.com/cilium/hubble/pull/656
|
||||||
|
# https://github.com/cilium/hubble/pull/655
|
||||||
|
doCheck = false;
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
$out/bin/hubble version | grep ${version} > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd hubble \
|
||||||
|
--bash <($out/bin/hubble completion bash) \
|
||||||
|
--fish <($out/bin/hubble completion fish) \
|
||||||
|
--zsh <($out/bin/hubble completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
||||||
description = "Network, Service & Security Observability for Kubernetes using eBPF";
|
description = "Network, Service & Security Observability for Kubernetes using eBPF";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = "https://github.com/cilium/hubble/";
|
homepage = "https://github.com/cilium/hubble/";
|
||||||
maintainers = with maintainers; [ humancalico ];
|
maintainers = with maintainers; [ humancalico bryanasdev000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user