grsec: Fix build after multiple output shuffling
Same problem with overrideDerivation as in https://github.com/NixOS/nixpkgs/issues/10721. Would be nice to have that fixed...
This commit is contained in:
parent
73f1ade407
commit
8576332fdf
@ -1,4 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, overrideDerivation
|
, overrideDerivation
|
||||||
|
|
||||||
# required for gcc plugins
|
# required for gcc plugins
|
||||||
@ -24,7 +25,7 @@ overrideDerivation (kernel.override {
|
|||||||
inherit extraConfig;
|
inherit extraConfig;
|
||||||
ignoreConfigErrors = true;
|
ignoreConfigErrors = true;
|
||||||
}) (attrs: {
|
}) (attrs: {
|
||||||
nativeBuildInputs = [ gmp libmpc mpfr ] ++ (attrs.nativeBuildInputs or []);
|
nativeBuildInputs = (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
Block a user