uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/applications/networking/cluster/kuma/default.nix
Normal file
65
pkgs/applications/networking/cluster/kuma/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, coredns
|
||||
, installShellFiles
|
||||
, isFull ? false
|
||||
, enableGateway ? false
|
||||
, pname ? "kuma"
|
||||
, components ? lib.optionals isFull [
|
||||
"kumactl"
|
||||
"kuma-cp"
|
||||
"kuma-prometheus-sd"
|
||||
"kuma-dp"
|
||||
]
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
inherit pname ;
|
||||
version = "1.5.0";
|
||||
tags = lib.optionals enableGateway ["gateway"];
|
||||
vendorSha256 = "sha256-ND1OTa37bxUNLDHceKdgiGE4LkEgBu9NmwuXtE4pZWk=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kumahq";
|
||||
repo = "kuma";
|
||||
rev = version;
|
||||
sha256 = "sha256-CnL+OQfM1lamdCRHTLRmgpwfEfC7C9TX6UEF75bsOsQ=";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [installShellFiles] ++ lib.optionals isFull [coredns];
|
||||
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
subPackages = map (p: "app/" + p) components;
|
||||
|
||||
postInstall = lib.concatMapStringsSep "\n" (p: ''
|
||||
installShellCompletion --cmd ${p} \
|
||||
--bash <($out/bin/${p} completion bash) \
|
||||
--fish <($out/bin/${p} completion fish) \
|
||||
--zsh <($out/bin/${p} completion zsh)
|
||||
'') components + lib.optionalString isFull ''
|
||||
ln -sLf ${coredns}/bin/coredns $out/bin
|
||||
'';
|
||||
|
||||
ldflags = let
|
||||
prefix = "github.com/kumahq/kuma/pkg/version";
|
||||
in [
|
||||
"-s" "-w"
|
||||
"-X ${prefix}.version=${version}"
|
||||
"-X ${prefix}.gitTag=${version}"
|
||||
"-X ${prefix}.gitCommit=${version}"
|
||||
"-X ${prefix}.buildDate=${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Service mesh controller";
|
||||
homepage = "https://kuma.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ zbioe ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue