mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00: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
@ -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 New Issue
Block a user