diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-12-30 12:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 12:22:37 +0100 |
commit | 646c641358de1c0856bfe46e369c45fd5a8fd617 (patch) | |
tree | 97ab7476ae65ddcaf510bc18914294a5551d27a2 /pkgs | |
parent | 4c28daa093b6cbb5905e3de00a9eb732ad2b5a21 (diff) | |
parent | d6be2529219b8905b85a71bc50c0423b695dae9b (diff) | |
download | nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar.gz nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar.bz2 nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar.lz nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar.xz nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.tar.zst nixpkgs-646c641358de1c0856bfe46e369c45fd5a8fd617.zip |
Merge pull request #76578 from xwvvvvwx/wireguard-tools-1.0.20191226
wireguard-tools 1.0.20191226 / wireguard 0.0.20191226
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/wireguard/default.nix | 14 | ||||
-rw-r--r-- | pkgs/tools/networking/wireguard-tools/default.nix | 12 |
2 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/wireguard/default.nix b/pkgs/os-specific/linux/wireguard/default.nix index c2dca669616..eefa03d91cd 100644 --- a/pkgs/os-specific/linux/wireguard/default.nix +++ b/pkgs/os-specific/linux/wireguard/default.nix @@ -1,11 +1,18 @@ -{ stdenv, kernel, wireguard-tools, perl }: +{ stdenv, fetchzip, kernel, perl, wireguard-tools }: # module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements assert stdenv.lib.versionAtLeast kernel.version "3.10"; +# wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html +assert stdenv.lib.versionOlder kernel.version "5.6"; -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "wireguard"; - inherit (wireguard-tools) src version; + version = "0.0.20191226"; + + src = fetchzip { + url = "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${version}.tar.xz"; + sha256 = "1q618h385kqnzxa8xswnw9i1yqrlnl3fglkhbzc8w1181qr4fhra"; + }; preConfigure = '' cd src @@ -27,6 +34,7 @@ stdenv.mkDerivation { meta = with stdenv.lib; { inherit (wireguard-tools.meta) homepage license maintainers; description = "Kernel module for the WireGuard secure network tunnel"; + downloadPage = "https://git.zx2c4.com/wireguard-linux-compat/refs/"; platforms = platforms.linux; }; } diff --git a/pkgs/tools/networking/wireguard-tools/default.nix b/pkgs/tools/networking/wireguard-tools/default.nix index 8133e2a5a54..9b6304174df 100644 --- a/pkgs/tools/networking/wireguard-tools/default.nix +++ b/pkgs/tools/networking/wireguard-tools/default.nix @@ -14,14 +14,14 @@ with stdenv.lib; stdenv.mkDerivation rec { pname = "wireguard-tools"; - version = "0.0.20191219"; + version = "1.0.20191226"; src = fetchzip { - url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"; - sha256 = "1qxpjvj3927xdly022rp2sndbifmr0c2y6ik77v43k95ch94716d"; + url = "https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${version}.tar.xz"; + sha256 = "14v5asdjazz0p3bhg8na9w6y66i3jhnn8imxhq8xlix1k4n93l4z"; }; - sourceRoot = "source/src/tools"; + sourceRoot = "source/src"; nativeBuildInputs = [ makeWrapper ]; buildInputs = optional stdenv.isLinux libmnl; @@ -51,10 +51,10 @@ stdenv.mkDerivation rec { meta = { description = "Tools for the WireGuard secure network tunnel"; - downloadPage = "https://git.zx2c4.com/WireGuard/refs/"; + downloadPage = "https://git.zx2c4.com/wireguard-tools/refs/"; homepage = "https://www.wireguard.com/"; license = licenses.gpl2; - maintainers = with maintainers; [ elseym ericsagnes mic92 zx2c4 globin ma27 ]; + maintainers = with maintainers; [ elseym ericsagnes mic92 zx2c4 globin ma27 xwvvvvwx ]; platforms = platforms.unix; }; } |