7 , enableGateway ? false
9 , components ? lib.optionals isFull [
19 tags = lib.optionals enableGateway [ "gateway" ];
21 src = fetchFromGitHub {
25 hash = "sha256-wGEO7DJLWy/d6SYsTb8EZhF9c1ptYBXDL/Owter4nfo=";
28 vendorHash = "sha256-PAW2Byzz6Ky4I51QrJoNoyn1QH/i0SeU2dDHvj2BqXM=";
33 nativeBuildInputs = [ installShellFiles ] ++ lib.optionals isFull [ coredns ];
39 subPackages = map (p: "app/" + p) components;
41 postInstall = lib.concatMapStringsSep "\n" (p: ''
42 installShellCompletion --cmd ${p} \
43 --bash <($out/bin/${p} completion bash) \
44 --fish <($out/bin/${p} completion fish) \
45 --zsh <($out/bin/${p} completion zsh)
46 '') components + lib.optionalString isFull ''
47 ln -sLf ${coredns}/bin/coredns $out/bin
51 prefix = "github.com/kumahq/kuma/pkg/version";
54 "-X ${prefix}.version=${version}"
55 "-X ${prefix}.gitTag=${version}"
56 "-X ${prefix}.gitCommit=${version}"
57 "-X ${prefix}.buildDate=${version}"
61 description = "Service mesh controller";
62 homepage = "https://kuma.io/";
63 changelog = "https://github.com/kumahq/kuma/blob/${version}/CHANGELOG.md";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ zbioe ];