linuxPackages_5_4.wireguard: fix cross build
This commit is contained in:
parent
32cfc505c6
commit
941367cba5
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preBuild = "cd src";
|
||||
buildFlags = [ "module" ];
|
||||
makeFlags = [
|
||||
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
];
|
||||
|
||||
INSTALL_MOD_PATH = placeholder "out";
|
||||
installFlags = [ "DEPMOD=true" ];
|
||||
|
|
Loading…
Reference in a new issue