git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "grsecurity: overrideDerivation -> overrideAttrs"
fc54eceJoachim Fasting
pkgs/build-support/grsecurity/default.nix+6−9
@@ -1,4 +1,6 @@
1{ stdenv
1{ stdenv
2+, lib
3+, overrideDerivation
2
4
3# required for gcc plugins
5# required for gcc plugins
4, gmp, libmpc, mpfr
6, gmp, libmpc, mpfr
@@ -17,22 +19,17 @@
17
19
18assert (kernel.version == grsecPatch.kver);
20assert (kernel.version == grsecPatch.kver);
19
21
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
26 PAX y
27 PAX y
27 ${extraConfig}
28 ${extraConfig}
28 '';
29 '';
29−
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 ""}