@@ -1,4 +1,6 @@
3# required for gcc plugins
5# required for gcc plugins
4, gmp, libmpc, mpfr
6, gmp, libmpc, mpfr
@@ -17,22 +19,17 @@
18assert (kernel.version == grsecPatch.kver);
20assert (kernel.version == grsecPatch.kver);
20−(kernel.override {
22+overrideDerivation (kernel.override {
21 inherit modDirVersion;
23 inherit modDirVersion;
22− # TODO: unique is a work-around
23− kernelPatches = stdenv.lib.unique ([ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []));
24+ kernelPatches = lib.unique ([ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []));
24 extraConfig = ''
25 extraConfig = ''
25 GRKERNSEC y
26 GRKERNSEC y
27 ${extraConfig}
28 ${extraConfig}
30− # Enabling grsecurity/PaX deselects several other options implicitly,
31− # causing the configfile checker to fail (when it finds that options
32− # expected to be enabled are not).
33 ignoreConfigErrors = true;
30 ignoreConfigErrors = true;
34−}).overrideAttrs (attrs: {
31+}) (attrs: {
35− nativeBuildInputs = (stdenv.lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
32+ nativeBuildInputs = (lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
36 preConfigure = ''
33 preConfigure = ''
37 echo ${localver} >localversion-grsec
34 echo ${localver} >localversion-grsec
38 ${attrs.preConfigure or ""}
35 ${attrs.preConfigure or ""}