linuxPackages.wireguard: fix build

Ensure that only module-related targets from the project's Makefile are
built.

Co-authored-by: elseym <elseym@me.com>
Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
Maximilian Bosch 2019-03-15 22:43:28 +01:00
parent f96f14f69e
commit 2c3ab523d3
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl ] ++ kernel.moduleBuildDependencies;
buildPhase = "make module";
buildFlags = [ "module" ];
installTargets = [ "module-install" ];
meta = with stdenv.lib; {
inherit (wireguard-tools.meta) homepage license maintainers;