mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
Merge pull request #173841 from wahjava/update-flannel
cni-flannel-plugin: 1.0.0 -> 1.1.0
This commit is contained in:
commit
21e908dbeb
1 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue