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:
Tuomas Tynkkynen 2016-08-30 15:55:49 +03:00
parent 73f1ade407
commit 8576332fdf

View file

@ -1,4 +1,5 @@
{ stdenv
, lib
, overrideDerivation
# required for gcc plugins
@ -24,7 +25,7 @@ overrideDerivation (kernel.override {
inherit extraConfig;
ignoreConfigErrors = true;
}) (attrs: {
nativeBuildInputs = [ gmp libmpc mpfr ] ++ (attrs.nativeBuildInputs or []);
nativeBuildInputs = (lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
preConfigure = ''
echo ${localver} >localversion-grsec
${attrs.preConfigure or ""}