nixpkgs/pkgs/tools/networking/flannel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
914 B
Nix
Raw Normal View History

2021-12-07 15:35:29 +00:00
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-03 11:17:53 +00:00
2021-12-07 15:35:29 +00:00
buildGoModule rec {
pname = "flannel";
2023-08-21 00:47:42 +00:00
version = "0.22.2";
2016-06-03 11:17:53 +00:00
rev = "v${version}";
2023-08-21 00:47:42 +00:00
vendorHash = "sha256-sObAXI9U5U1JXWNzaBNNGfklnfh/G3aUye/MINWwU4s=";
2016-06-03 11:17:53 +00:00
src = fetchFromGitHub {
2016-06-03 11:17:53 +00:00
inherit rev;
2021-12-07 15:35:29 +00:00
owner = "flannel-io";
repo = "flannel";
2023-08-21 00:47:42 +00:00
sha256 = "sha256-ZQyBPsYIOQq6oonn661sIBpccV9uxoXlieOhbIIv5AE=";
2016-09-27 20:51:09 +00:00
};
2023-06-29 07:34:26 +00:00
ldflags = [ "-X github.com/flannel-io/flannel/pkg/version.Version=${rev}" ];
2021-12-07 15:35:29 +00:00
# TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted"
doCheck = false;
passthru.tests = { inherit (nixosTests) flannel; };
meta = with lib; {
2016-09-27 20:51:09 +00:00
description = "Network fabric for containers, designed for Kubernetes";
license = licenses.asl20;
2021-12-07 15:35:29 +00:00
homepage = "https://github.com/flannel-io/flannel";
maintainers = with maintainers; [ johanot offline ];
2016-09-27 20:51:09 +00:00
platforms = with platforms; linux;
2016-06-03 11:17:53 +00:00
};
}