wireguard-go: 0.0.20210424 -> 0.0.20220316

This commit is contained in:
Aaron Jheng 2022-04-05 10:24:44 +00:00
parent 117f62e72e
commit 9821a42565
No known key found for this signature in database
GPG key ID: F6A547A869D050A3
4 changed files with 20 additions and 1828 deletions

View file

@ -1,25 +1,33 @@
{ lib, buildGoPackage, fetchzip }:
{ lib, buildGoModule, fetchzip, testers, wireguard-go }:
buildGoPackage rec {
buildGoModule rec {
pname = "wireguard-go";
version = "0.0.20210424";
goPackagePath = "golang.zx2c4.com/wireguard";
version = "0.0.20220316";
src = fetchzip {
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
sha256 = "RUUueSsfEi1H+ckrnPKqbVlWONhCplMMftlyAmwK+ss=";
sha256 = "sha256-OQiG92idGwOXWX4H4HNmk2dmRM2+GtssJFzavhj1HxM=";
};
goDeps = ./deps.nix;
postPatch = ''
# Skip formatting tests
rm -f format_test.go
'';
passthru.updateScript = ./update.sh;
vendorSha256 = "sha256-MrHkOj0YfvAm8zOowXzl23F1NPTCO0F8vMMGT/Y+nQ0=";
subPackages = [ "." ];
ldflags = [ "-s" "-w" ];
postInstall = ''
mv $out/bin/wireguard $out/bin/wireguard-go
'';
doCheck = true;
passthru.tests.version = testers.testVersion {
package = wireguard-go;
version = "v${version}";
};
meta = with lib; {
description = "Userspace Go implementation of WireGuard";

File diff suppressed because it is too large Load diff

View file

@ -1,14 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnused common-updater-scripts vgo2nix
set -eu -o pipefail
basedir="$(git rev-parse --show-toplevel)"
version="$(curl -sL https://build.wireguard.com/distros.txt | sed -n 's/^upstream\tgo\t\([^\t]\+\)\t.*/\1/p')"
update-source-version wireguard-go "$version"
vgo2nix -dir $(nix-build -A wireguard-go.src) -outfile "$basedir/pkgs/tools/networking/wireguard-go/deps.nix"
if [[ -f "$basedir/wireguard-go.log" ]];then
rm "$basedir/wireguard-go.log"
fi

View file

@ -11714,7 +11714,9 @@ with pkgs;
wipe = callPackage ../tools/security/wipe { };
wireguard-go = callPackage ../tools/networking/wireguard-go { };
wireguard-go = callPackage ../tools/networking/wireguard-go {
buildGoModule = buildGo118Module;
};
wkhtmltopdf = libsForQt514.callPackage ../tools/graphics/wkhtmltopdf { };