Merge pull request #190915 from LumiGuide/yorickvp/upstr-wgup
linuxPackages.wireguard: 1.0.20211208 -> 1.0.20220627, fix cross
This commit is contained in:
commit
3c86c4cea7
1 changed files with 7 additions and 2 deletions
|
@ -5,11 +5,11 @@ assert lib.versionOlder kernel.version "5.6";
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wireguard";
|
||||
version = "1.0.20211208";
|
||||
version = "1.0.20220627";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${version}.tar.xz";
|
||||
sha256 = "sha256-MHC4ojhRD8IGwTUE8oEew8IVof9hQCC7CPgVQIBfBRQ=";
|
||||
sha256 = "sha256-skbho3e49lZ/GLp/JDQpf/yXIEjes86aYtw/dn6e0Uo=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
@ -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