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
100 lines
2.1 KiB
Nix
100 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
builtins.mapAttrs
|
|
(
|
|
pname:
|
|
{
|
|
doCheck ? true,
|
|
mainProgram ? pname,
|
|
subPackages,
|
|
}:
|
|
buildGoModule rec {
|
|
inherit pname;
|
|
version = "3.30.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectcalico";
|
|
repo = "calico";
|
|
rev = "v${version}";
|
|
hash = "sha256-Z2kYUak/zzO0IsKQyQ6sb3UD4QUZ9+9vGGVfl4qdPF8=";
|
|
};
|
|
|
|
vendorHash = "sha256-C9sge+xNTsW30PF2wJhRUNI1YEmXInD+xcboCtcC9kc=";
|
|
|
|
inherit doCheck subPackages;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://projectcalico.docs.tigera.io";
|
|
changelog = "https://github.com/projectcalico/calico/releases/tag/v${version}";
|
|
description = "Cloud native networking and network security";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ urandom ];
|
|
platforms = lib.platforms.linux;
|
|
inherit mainProgram;
|
|
};
|
|
}
|
|
)
|
|
{
|
|
calico-apiserver = {
|
|
mainProgram = "apiserver";
|
|
subPackages = [
|
|
"apiserver/cmd/..."
|
|
];
|
|
};
|
|
calico-app-policy = {
|
|
# integration tests require network
|
|
doCheck = false;
|
|
mainProgram = "dikastes";
|
|
subPackages = [
|
|
"app-policy/cmd/..."
|
|
];
|
|
};
|
|
calico-cni-plugin = {
|
|
mainProgram = "calico";
|
|
subPackages = [
|
|
"cni-plugin/cmd/..."
|
|
];
|
|
};
|
|
calico-kube-controllers = {
|
|
# integration tests require network and docker
|
|
doCheck = false;
|
|
mainProgram = "kube-controllers";
|
|
subPackages = [
|
|
"kube-controllers/cmd/..."
|
|
];
|
|
};
|
|
calico-pod2daemon = {
|
|
mainProgram = "flexvol";
|
|
subPackages = [
|
|
"pod2daemon/csidriver"
|
|
"pod2daemon/flexvol"
|
|
"pod2daemon/nodeagent"
|
|
];
|
|
};
|
|
calico-typha = {
|
|
subPackages = [
|
|
"typha/cmd/..."
|
|
];
|
|
};
|
|
calicoctl = {
|
|
subPackages = [
|
|
"calicoctl/calicoctl"
|
|
];
|
|
};
|
|
confd-calico = {
|
|
mainProgram = "confd";
|
|
subPackages = [
|
|
"confd"
|
|
];
|
|
};
|
|
}
|