From 0854793542884ea1d266afe4e684624dbc16f9d7 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Wed, 17 Aug 2022 09:46:01 +0200 Subject: [PATCH] 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. --- pkgs/development/tools/misc/coreboot-toolchain/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/coreboot-toolchain/default.nix b/pkgs/development/tools/misc/coreboot-toolchain/default.nix index 3452ac6ef963..0229aba0f38b 100644 --- a/pkgs/development/tools/misc/coreboot-toolchain/default.nix +++ b/pkgs/development/tools/misc/coreboot-toolchain/default.nix @@ -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;