coreboot: make Ada support optional

Ada support keeps breaking due to gnat being in a somewhat poor state
in nixpkgs. As Ada support is only necessary for some Intel drivers
and these are generally not required for using coreboot in a VM, make
Ada support optional.
This commit is contained in:
Julian Stecklina 2022-08-17 09:46:01 +02:00
parent 4688d3efc8
commit 0854793542

View file

@ -9,10 +9,12 @@ let
, getopt
, git
, gnat11
, gcc
, lib
, perl
, stdenvNoCC
, zlib
, withAda ? true
}:
stdenvNoCC.mkDerivation rec {
@ -33,7 +35,7 @@ let
};
nativeBuildInputs = [ bison curl git perl ];
buildInputs = [ flex gnat11 zlib ];
buildInputs = [ flex zlib (if withAda then gnat11 else gcc) ];
enableParallelBuilding = true;
dontConfigure = true;