This will give packages that e.g. want to optionally disable pandoc based on availability a simple attribute to check, rather than having to copy quite a complex conditional between packages.
···838 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
839 # so haddock isn't available for GHC cross-compilers. Can we fix that?
840 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;
00841 };
842843 meta = {
···838 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
839 # so haddock isn't available for GHC cross-compilers. Can we fix that?
840 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;
841+842+ bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
843 };
844845 meta = {