Merge pull request #143710 from wahjava/update-flannel

cni-flannel-plugin: 1.1 -> 1.0.0
This commit is contained in:
Bobby Rong 2021-11-01 22:36:48 +08:00 committed by GitHub
commit 9f4c6fd07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,22 +2,29 @@
buildGoModule rec { buildGoModule rec {
pname = "cni-plugin-flannel"; pname = "cni-plugin-flannel";
version = "1.1"; version = "1.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "flannel-io"; owner = "flannel-io";
repo = "cni-plugin"; repo = "cni-plugin";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-DZC6uJR6TIHdmu8kZcbM+RC7pdejqLCOep0v3PM8/QY="; sha256 = "sha256-zWxw4LZIlkT88yGTnxdupq7cUSacNRxPzzp01O9USDw=";
}; };
vendorSha256 = "sha256-TLAwE3pTnJYOi1AsOQfsG6t3xLKOah/7DvYjsqyltKs="; vendorSha256 = "sha256-zteMlrvRTVxOFlBy+z/qfiSii8+c8PMapwIsdbN+Aig=";
postInstall = '' postInstall = ''
mv $out/bin/cni-plugin $out/bin/flannel mv $out/bin/cni-plugin $out/bin/flannel
''; '';
doCheck = false; doCheck = false;
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/flannel 2>&1 | fgrep -q v$version
runHook postInstallCheck
'';
meta = with lib; { meta = with lib; {
description = "flannel CNI plugin"; description = "flannel CNI plugin";