cilium-cli: 0.11.7 -> 0.11.10
- bump version - add upstream ldflags - add myself as a maintainer - add subpackages per upstream - add install check
This commit is contained in:
parent
43873280f6
commit
9e4cb79aff
1 changed files with 20 additions and 3 deletions
|
@ -2,22 +2,39 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "cilium-cli";
|
pname = "cilium-cli";
|
||||||
version = "0.11.7";
|
version = "0.11.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cilium";
|
owner = "cilium";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-4+4E7v/b74DDekqymH8PR7/GfH3GGzSQFQk24VJisQ0=";
|
sha256 = "sha256-BkcnChxUceWGG5hBOHvzZokgcw8T/vvNwIEtHkLfUJA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
subPackages = [ "cmd/cilium" ];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s" "-w"
|
||||||
|
"-X github.com/cilium/cilium-cli/internal/cli/cmd.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Required to workaround install check error:
|
||||||
|
# 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
|
||||||
|
HOME = "$TMPDIR";
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
$out/bin/cilium version | grep ${version} > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium";
|
description = "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = "https://www.cilium.io/";
|
homepage = "https://www.cilium.io/";
|
||||||
maintainers = with maintainers; [ humancalico ];
|
maintainers = with maintainers; [ humancalico bryanasdev000 ];
|
||||||
mainProgram = "cilium";
|
mainProgram = "cilium";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue