From 3c627fc5d37c8c77d33bf097131ee4c0f3c53230 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sat, 21 May 2022 10:57:18 +0530 Subject: [PATCH] cni-flannel-plugin: 1.0.0 -> 1.1.0 --- pkgs/tools/networking/flannel/plugin.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/flannel/plugin.nix b/pkgs/tools/networking/flannel/plugin.nix index db55a3dfd04c..957d5415164e 100644 --- a/pkgs/tools/networking/flannel/plugin.nix +++ b/pkgs/tools/networking/flannel/plugin.nix @@ -2,16 +2,23 @@ buildGoModule rec { pname = "cni-plugin-flannel"; - version = "1.0.0"; + version = "1.1.0"; src = fetchFromGitHub { owner = "flannel-io"; repo = "cni-plugin"; rev = "v${version}"; - sha256 = "sha256-zWxw4LZIlkT88yGTnxdupq7cUSacNRxPzzp01O9USDw="; + sha256 = "sha256-Rq1hVZazeF39YGiuuWC8adff3AhPsSLnnfVpGCaMqgc="; }; - vendorSha256 = "sha256-zteMlrvRTVxOFlBy+z/qfiSii8+c8PMapwIsdbN+Aig="; + vendorSha256 = "sha256-ddwNJZzdyO/wEdy0C7Z8IoOWXY4jggcgIHxmRUGGf9s="; + + ldflags = [ + "-s" "-w" + "-X main.Version=${version}" + "-X main.Commit=${version}" + "-X main.Program=flannel" + ]; postInstall = '' mv $out/bin/cni-plugin $out/bin/flannel @@ -22,7 +29,7 @@ buildGoModule rec { installCheckPhase = '' runHook preInstallCheck - $out/bin/flannel 2>&1 | fgrep -q v$version + $out/bin/flannel 2>&1 | fgrep -q $version runHook postInstallCheck '';