mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
wireguard: disable build against -grsec kernels
Looks to be incompatible with the PaX constification plugin: > /tmp/nix-build-wireguard-unstable-2016-08-08.drv-0/WireGuard-experimental-0.0.20160808/src/device.c:329:29: error: constified variable 'link_ops' placed into writable section ".data..read_mostly" static struct rtnl_link_ops link_ops __read_mostly = { https://hydra.nixos.org/build/39671573/log/raw See also https://github.com/NixOS/nixpkgs/issues/18209
This commit is contained in:
parent
fc0b40328d
commit
ca465eeeb1
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
# module requires Linux >= 4.1 https://www.wireguard.io/install/#kernel-requirements
|
||||
assert kernel != null -> stdenv.lib.versionAtLeast kernel.version "4.1";
|
||||
# module is incompatible with the PaX constification plugin
|
||||
assert kernel != null -> !(kernel.features.grsecurity or false);
|
||||
|
||||
let
|
||||
name = "wireguard-unstable-${version}";
|
||||
|
|
Loading…
Reference in a new issue