mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
wireguard: init at 20160708 (#16856)
This commit is contained in:
parent
dc5293d80b
commit
1b41283eb3
34
pkgs/os-specific/linux/wireguard/default.nix
Normal file
34
pkgs/os-specific/linux/wireguard/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue