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.
···838838 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
839839 # so haddock isn't available for GHC cross-compilers. Can we fix that?
840840 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;
841841+842842+ bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
841843 };
842844843845 meta = {