grsecurity: overrideDerivation -> overrideAttrs
This commit is contained in:
parent
28b5cc7dca
commit
3d9017602b
|
@ -1,6 +1,4 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
|
||||||
, overrideDerivation
|
|
||||||
|
|
||||||
# required for gcc plugins
|
# required for gcc plugins
|
||||||
, gmp, libmpc, mpfr
|
, gmp, libmpc, mpfr
|
||||||
|
@ -19,17 +17,22 @@
|
||||||
|
|
||||||
assert (kernel.version == grsecPatch.kver);
|
assert (kernel.version == grsecPatch.kver);
|
||||||
|
|
||||||
overrideDerivation (kernel.override {
|
(kernel.override {
|
||||||
inherit modDirVersion;
|
inherit modDirVersion;
|
||||||
kernelPatches = lib.unique ([ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []));
|
# TODO: unique is a work-around
|
||||||
|
kernelPatches = stdenv.lib.unique ([ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []));
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
GRKERNSEC y
|
GRKERNSEC y
|
||||||
PAX y
|
PAX y
|
||||||
${extraConfig}
|
${extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Enabling grsecurity/PaX deselects several other options implicitly,
|
||||||
|
# causing the configfile checker to fail (when it finds that options
|
||||||
|
# expected to be enabled are not).
|
||||||
ignoreConfigErrors = true;
|
ignoreConfigErrors = true;
|
||||||
}) (attrs: {
|
}).overrideAttrs (attrs: {
|
||||||
nativeBuildInputs = (lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
|
nativeBuildInputs = (stdenv.lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
echo ${localver} >localversion-grsec
|
echo ${localver} >localversion-grsec
|
||||||
${attrs.preConfigure or ""}
|
${attrs.preConfigure or ""}
|
||||||
|
|
Loading…
Reference in New Issue