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
910 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-06-29 04:52:43 +00:00
version = "0.22.0";
2016-06-03 11:17:53 +00:00
rev = "v${version}";
2023-05-06 08:39:57 +00:00
vendorHash = "sha256-JtDFwkYRAxpa4OBV5Tzr70DcOsp2oA3XB0PM5kGaY6Q=";
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-06-29 04:52:43 +00:00
sha256 = "sha256-LwIGY74iH/qD8XpTw3wRJC0DVsFj1qLInX0i5Zorvew=";
2016-09-27 20:51:09 +00:00
};
2021-12-07 15:35:29 +00:00
ldflags = [ "-X github.com/flannel-io/flannel/version.Version=${rev}" ];
# 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
};
}