mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
83 lines
1.8 KiB
Nix
83 lines
1.8 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
builtins.mapAttrs (pname: { doCheck ? true, mainProgram ? pname, subPackages }: buildGoModule rec {
|
|
inherit pname;
|
|
version = "3.26.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectcalico";
|
|
repo = "calico";
|
|
rev = "v${version}";
|
|
hash = "sha256-QSebSc4V8DFSKufSB6M4YSuwDJ9rn/6IR6Fr38F8BBQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-SuV7OEt0ZlVt0i8L5rgQd0HJn63XuDHi7+pe+bq+6Yw=";
|
|
|
|
inherit doCheck subPackages;
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://projectcalico.docs.tigera.io";
|
|
changelog = "https://github.com/projectcalico/calico/releases/tag/v${version}";
|
|
description = "Cloud native networking and network security";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ urandom ];
|
|
platforms = 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"
|
|
];
|
|
};
|
|
}
|