wireguard: use fetchzip instead of fetchurl

Because cgit snapshots are not deterministic.
This commit is contained in:
Kirill Elagin 2018-05-19 13:08:04 +03:00
parent 60d96d7786
commit 95cf07fc95
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, libmnl, useSystemd ? stdenv.isLinux }: { stdenv, lib, fetchzip, libmnl, useSystemd ? stdenv.isLinux }:
let let
inherit (lib) optional optionalString; inherit (lib) optional optionalString;
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
name = "wireguard-tools-${version}"; name = "wireguard-tools-${version}";
version = "0.0.20180514"; version = "0.0.20180514";
src = fetchurl { src = fetchzip {
url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"; url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz";
sha256 = "1nk6yj1gdmpar99zzw39n1v795m6fxsrilg37d02jm780rgbd5g8"; sha256 = "15z0s1i8qyq1fpw8j6rky53ffrpp3f49zn1022jwdslk4g0ncaaj";
}; };
preConfigure = "cd src"; preConfigure = "cd src";