Merge pull request #190915 from LumiGuide/yorickvp/upstr-wgup

linuxPackages.wireguard: 1.0.20211208 -> 1.0.20220627, fix cross

authored by Yorick and committed by GitHub 3c86c4ce a704b902

+7 -2
+7 -2
pkgs/os-specific/linux/wireguard/default.nix
··· 5 5 6 6 stdenv.mkDerivation rec { 7 7 pname = "wireguard"; 8 - version = "1.0.20211208"; 8 + version = "1.0.20220627"; 9 9 10 10 src = fetchzip { 11 11 url = "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${version}.tar.xz"; 12 - sha256 = "sha256-MHC4ojhRD8IGwTUE8oEew8IVof9hQCC7CPgVQIBfBRQ="; 12 + sha256 = "sha256-skbho3e49lZ/GLp/JDQpf/yXIEjes86aYtw/dn6e0Uo="; 13 13 }; 14 14 15 15 hardeningDisable = [ "pic" ]; ··· 20 20 21 21 preBuild = "cd src"; 22 22 buildFlags = [ "module" ]; 23 + makeFlags = [ 24 + "ARCH=${stdenv.hostPlatform.linuxArch}" 25 + ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [ 26 + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 27 + ]; 23 28 24 29 INSTALL_MOD_PATH = placeholder "out"; 25 30 installFlags = [ "DEPMOD=true" ];