2021-09-12 01:51:26 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-09-11 21:55:55 +01:00
|
|
|
|
2021-09-21 03:36:19 +01:00
|
|
|
buildGoModule rec {
|
2021-09-11 21:55:55 +01:00
|
|
|
pname = "cni-plugin-flannel";
|
2021-10-02 23:09:15 +01:00
|
|
|
version = "1.1";
|
2021-09-11 21:55:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flannel-io";
|
|
|
|
repo = "cni-plugin";
|
2021-09-21 03:36:19 +01:00
|
|
|
rev = "v${version}";
|
2021-10-02 23:09:15 +01:00
|
|
|
sha256 = "sha256-DZC6uJR6TIHdmu8kZcbM+RC7pdejqLCOep0v3PM8/QY=";
|
2021-09-11 21:55:55 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|