about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2016-01-23 16:58:35 +0000
committerDan Peebles <pumpkin@me.com>2016-01-23 16:58:44 +0000
commit8f9aea9ccc1fda3fc3b1573d4afa9c26d96ad693 (patch)
treebe8ca1ed0cd01ba375f338474e279450e476de74 /pkgs/os-specific
parent85f9d04319116a3cd631f5068154272e06a39100 (diff)
grsecurity: fix kernel config and uncomment grsecurity kernels
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/generic.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix
index b42892f9f2d88..59d3642e62278 100644
--- a/pkgs/os-specific/linux/kernel/generic.nix
+++ b/pkgs/os-specific/linux/kernel/generic.nix
@@ -23,6 +23,7 @@
   # symbolic name and `patch' is the actual patch.  The patch may
   # optionally be compressed with gzip or bzip2.
   kernelPatches ? []
+, ignoreConfigErrors ? stdenv.platform.name != "pc"
 , extraMeta ? {}
 , ...
 }:
@@ -41,14 +42,13 @@ let
     in lib.concatStringsSep "\n" ([baseConfig] ++ configFromPatches);
 
   configfile = stdenv.mkDerivation {
+    inherit ignoreConfigErrors;
     name = "linux-config-${version}";
 
     generateConfig = ./generate-config.pl;
 
     kernelConfig = kernelConfigFun config;
 
-    ignoreConfigErrors = stdenv.platform.name != "pc";
-
     nativeBuildInputs = [ perl ];
 
     platformName = stdenv.platform.name;