forked from mirrors/nixpkgs
Merge pull request #103600 from erictapen/wireguard-linux-compat-20201112
linuxPackages.wireguard: 1.0.20200908 -> 1.0.20201112
This commit is contained in:
commit
e07fcb95b5
|
@ -7,17 +7,13 @@ assert stdenv.lib.versionOlder kernel.version "5.6";
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wireguard";
|
||||
version = "1.0.20200908";
|
||||
version = "1.0.20201112";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${version}.tar.xz";
|
||||
sha256 = "1nd2kc3c62907kxm1084dw7krd8xsy3hxydmcpz4jvk03vm5dnkg";
|
||||
sha256 = "sha256-HnYvjZ3VUH79NwNIvyTTygWYbVqEL2ttvlOlLiHhb5s=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./linux-5.4.76-fix.patch
|
||||
];
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff -u -r wireguard-linux-compat-1.0.20200908/src/compat/compat-asm.h wireguard-linux-compat-1.0.20200908-lts/src/compat/compat-asm.h
|
||||
--- wireguard-linux-compat-1.0.20200908/src/compat/compat-asm.h 2020-09-08 16:22:40.000000000 +0000
|
||||
+++ wireguard-linux-compat-1.0.20200908-lts/src/compat/compat-asm.h 2020-11-10 15:05:43.720093522 +0000
|
||||
@@ -40,7 +40,7 @@
|
||||
#undef pull
|
||||
#endif
|
||||
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76)
|
||||
#define SYM_FUNC_START ENTRY
|
||||
#define SYM_FUNC_END ENDPROC
|
||||
#endif
|
Loading…
Reference in a new issue