wireguard: use src from wireguard-tools

This commit is contained in:
Yegor Timoshenko 2018-05-19 17:20:33 +03:00 committed by GitHub
parent 95cf07fc95
commit f8ed43e600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchzip, kernel }:
{ stdenv, fetchzip, kernel, wireguard-tools }:
# module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements
assert stdenv.lib.versionAtLeast kernel.version "3.10";
@ -7,10 +7,7 @@ stdenv.mkDerivation rec {
name = "wireguard-${version}";
version = "0.0.20180514";
src = fetchzip {
url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz";
sha256 = "15z0s1i8qyq1fpw8j6rky53ffrpp3f49zn1022jwdslk4g0ncaaj";
};
inherit (wireguard-tools) src;
preConfigure = ''
cd src