wireguard-go: 0.0.20210424 -> 0.0.20220316
This commit is contained in:
parent
117f62e72e
commit
9821a42565
4 changed files with 20 additions and 1828 deletions
|
@ -1,25 +1,33 @@
|
||||||
{ lib, buildGoPackage, fetchzip }:
|
{ lib, buildGoModule, fetchzip, testers, wireguard-go }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "wireguard-go";
|
pname = "wireguard-go";
|
||||||
version = "0.0.20210424";
|
version = "0.0.20220316";
|
||||||
|
|
||||||
goPackagePath = "golang.zx2c4.com/wireguard";
|
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
|
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 = ''
|
postInstall = ''
|
||||||
mv $out/bin/wireguard $out/bin/wireguard-go
|
mv $out/bin/wireguard $out/bin/wireguard-go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
passthru.tests.version = testers.testVersion {
|
||||||
|
package = wireguard-go;
|
||||||
|
version = "v${version}";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Userspace Go implementation of WireGuard";
|
description = "Userspace Go implementation of WireGuard";
|
||||||
|
|
1804
pkgs/tools/networking/wireguard-go/deps.nix
generated
1804
pkgs/tools/networking/wireguard-go/deps.nix
generated
File diff suppressed because it is too large
Load diff
|
@ -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
|
|
|
@ -11714,7 +11714,9 @@ with pkgs;
|
||||||
|
|
||||||
wipe = callPackage ../tools/security/wipe { };
|
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 { };
|
wkhtmltopdf = libsForQt514.callPackage ../tools/graphics/wkhtmltopdf { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue