From cdd3dda63b198675a4c5ed186a15b8fbd35d19a9 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 5 Nov 2022 03:35:15 +0000 Subject: [PATCH] cni: 0.8.1 -> 1.1.2 --- .../networking/cluster/cni/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/cluster/cni/default.nix b/pkgs/applications/networking/cluster/cni/default.nix index 3a9bb84938ca..3dcf284021ed 100644 --- a/pkgs/applications/networking/cluster/cni/default.nix +++ b/pkgs/applications/networking/cluster/cni/default.nix @@ -1,17 +1,23 @@ -{ lib, fetchFromGitHub, buildGoPackage }: +{ lib, fetchFromGitHub, buildGoModule }: -buildGoPackage rec { +buildGoModule rec { pname = "cni"; - version = "0.8.1"; + version = "1.1.2"; src = fetchFromGitHub { owner = "containernetworking"; repo = pname; rev = "v${version}"; - sha256 = "sha256-vxwNHIc3rFi7HKIEZrBcr7Oxs2iUtFYcfJK7aXDUv3k="; + sha256 = "sha256-g7fVeoqquxPa17AfTu6wnB6PQJDluJ21T3ETrcvWtWg="; }; - goPackagePath = "github.com/containernetworking/cni"; + vendorSha256 = "sha256-nH/myA/KdTeFXvmBymXITyx5fdCGnWRn6hNRinXc3/s="; + + subPackages = [ + "./cnitool" + ]; + + ldflags = [ "-s" "-w" ]; meta = with lib; { description = "Container Network Interface - networking for Linux containers";