summary refs log tree commit diff
path: root/pkgs/os-specific/linux/wireguard
diff options
context:
space:
mode:
authorDavid Terry <me@xwvvvvwx.com>2019-12-27 16:47:29 +0100
committerDavid Terry <me@xwvvvvwx.com>2019-12-27 21:01:54 +0100
commit9681bc7147efc87b8ba8a02141fb6ebc3ef4951a (patch)
treeaa04995eca633018caacb8d12e4d4b20f6af6309 /pkgs/os-specific/linux/wireguard
parent264f44b1d0aa33986231a3b9f8ec02a2492b03dc (diff)
downloadnixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar.gz
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar.bz2
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar.lz
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar.xz
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.tar.zst
nixpkgs-9681bc7147efc87b8ba8a02141fb6ebc3ef4951a.zip
wireguard: 0.0.20191219 -> 0.0.20191226
the wireguard kernel module has been pulled out into it's own repo as
announced in this mailing list post:

https://lists.zx2c4.com/pipermail/wireguard/2019-December/004796.html
Diffstat (limited to 'pkgs/os-specific/linux/wireguard')
-rw-r--r--pkgs/os-specific/linux/wireguard/default.nix14
1 files changed, 11 insertions, 3 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;
   };
 }