2021-09-12 02:51:26 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-09-11 22:55:55 +02:00
|
|
|
|
2021-09-21 04:36:19 +02:00
|
|
|
buildGoModule rec {
|
2021-09-11 22:55:55 +02:00
|
|
|
pname = "cni-plugin-flannel";
|
2021-10-03 00:09:15 +02:00
|
|
|
version = "1.1";
|
2021-09-11 22:55:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flannel-io";
|
|
|
|
repo = "cni-plugin";
|
2021-09-21 04:36:19 +02:00
|
|
|
rev = "v${version}";
|
2021-10-03 00:09:15 +02:00
|
|
|
sha256 = "sha256-DZC6uJR6TIHdmu8kZcbM+RC7pdejqLCOep0v3PM8/QY=";
|
2021-09-11 22:55:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-TLAwE3pTnJYOi1AsOQfsG6t3xLKOah/7DvYjsqyltKs=";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cni-plugin $out/bin/flannel
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "flannel CNI plugin";
|
|
|
|
homepage = "https://github.com/flannel-io/cni-plugin/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbe ];
|
|
|
|
};
|
|
|
|
}
|