wireguard-go: 0.0.20200320 -> 0.0.20210424

additional dependencies into deps.nix were generated for
sub-project "$src/tun/netstack/go.mod"
This commit is contained in:
efim 2021-08-11 13:40:03 +03:00
parent 2f2ae8de27
commit 79eee19bd0
3 changed files with 1767 additions and 39 deletions

View file

@ -1,26 +0,0 @@
From 63360467da4ae6d7fc8c0e05619bdf8813c7e417 Mon Sep 17 00:00:00 2001
From: Maximilian Bosch <maximilian@mbosch.me>
Date: Sun, 5 Jan 2020 15:35:15 +0100
Subject: [PATCH] Fix darwin build
---
rwcancel/select_default.go | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/rwcancel/select_default.go b/rwcancel/select_default.go
index dd23cda..03f3452 100644
--- a/rwcancel/select_default.go
+++ b/rwcancel/select_default.go
@@ -9,6 +9,7 @@ package rwcancel
import "golang.org/x/sys/unix"
-func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) error {
- return unix.Select(nfd, r, w, e, timeout)
+func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) (err error) {
+ _, err = unix.Select(nfd, r, w, e, timeout)
+ return
}
--
2.23.1

View file

@ -2,17 +2,15 @@
buildGoPackage rec {
pname = "wireguard-go";
version = "0.0.20200320";
version = "0.0.20210424";
goPackagePath = "golang.zx2c4.com/wireguard";
src = fetchzip {
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
sha256 = "0fy4qsss3i3pkq1rpgjds4aipbwlh1dr9hbbf7jn2a1c63kfks0r";
sha256 = "RUUueSsfEi1H+ckrnPKqbVlWONhCplMMftlyAmwK+ss=";
};
patches = [ ./0001-Fix-darwin-build.patch ];
goDeps = ./deps.nix;
passthru.updateScript = ./update.sh;

File diff suppressed because it is too large Load diff