Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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>
(cherry picked from commit 2c3ab523d3fc47c2bbb1a34e09096e02be884fde)

authored by

Maximilian Bosch
elseym
Franz Pletz
and committed by
Florian Klink
8334fa0c 67c9139a

+2 -1
+2 -1
pkgs/os-specific/linux/wireguard/default.nix
··· 21 22 nativeBuildInputs = [ perl ] ++ kernel.moduleBuildDependencies; 23 24 - buildPhase = "make module"; 25 26 meta = with stdenv.lib; { 27 inherit (wireguard-tools.meta) homepage license maintainers;
··· 21 22 nativeBuildInputs = [ perl ] ++ kernel.moduleBuildDependencies; 23 24 + buildFlags = [ "module" ]; 25 + installTargets = [ "module-install" ]; 26 27 meta = with stdenv.lib; { 28 inherit (wireguard-tools.meta) homepage license maintainers;