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>
commit2c3ab523d3fc47c2bbb1a34e09096e02be884fde
authorMaximilian Bosch <maximilian@mbosch.me>
dateFri 15 Mar 2019, 22:43 (8 years ago)
parentf96f14f
pkgs/os-specific/linux/wireguard/default.nix+2−1
@@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
2121
2222 nativeBuildInputs = [ perl ] ++ kernel.moduleBuildDependencies;
2323
24− buildPhase = "make module";
24+ buildFlags = [ "module" ];
25+ installTargets = [ "module-install" ];
2526
2627 meta = with stdenv.lib; {
2728 inherit (wireguard-tools.meta) homepage license maintainers;