Unverified Commit 3c86c4ce authored by Yorick's avatar Yorick Committed by GitHub
Browse files

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

linuxPackages.wireguard: 1.0.20211208 -> 1.0.20220627, fix cross
parents a704b902 941367cb
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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" ];