wireguard: init at 20160708 (#16856)

This commit is contained in:
Eric Sagnes 2016-07-12 01:05:23 +09:00 committed by Robin Gloster
parent dc5293d80b
commit 1b41283eb3
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ stdenv, fetchgit, libmnl, kernel }:
stdenv.mkDerivation rec {
name = "wireguard-${version}";
version = "20160708";
src = fetchgit {
url = "https://git.zx2c4.com/WireGuard";
rev = "dcc2583fe0618931e51aedaeeddde356d123acb2";
sha256 = "1ciyjpp8c3fv95y1cypk9qyqynp8cqyh2676afq2hd33110d37ni";
};
preConfigure = ''
cd src
sed -i /depmod/d Makefile
'';
buildInputs = [ libmnl ];
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
makeFlags = [
"DESTDIR=$(out)"
"PREFIX=/"
"INSTALL_MOD_PATH=$(out)"
];
meta = with stdenv.lib; {
homepage = https://www.wireguard.io/;
description = "Fast, modern, secure VPN tunnel";
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -11105,6 +11105,8 @@ in
virtualboxGuestAdditions = callPackage ../applications/virtualization/virtualbox/guest-additions { };
wireguard = callPackage ../os-specific/linux/wireguard {};
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
zfs = callPackage ../os-specific/linux/zfs {