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

linuxPackages.wireguard: 1.0.20211208 -> 1.0.20220627, fix cross
This commit is contained in:
Yorick 2022-11-02 11:27:31 +01:00 committed by GitHub
commit 3c86c4cea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ];