ghc.bootstrapAvailable: init

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.

+6
+2
pkgs/development/compilers/ghc/8.10.7.nix
··· 640 640 641 641 # Our Cabal compiler name 642 642 haskellCompilerName = "ghc-${version}"; 643 + 644 + bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc; 643 645 }; 644 646 645 647 meta = {
+2
pkgs/development/compilers/ghc/common-hadrian.nix
··· 838 838 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default, 839 839 # so haddock isn't available for GHC cross-compilers. Can we fix that? 840 840 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform; 841 + 842 + bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc; 841 843 }; 842 844 843 845 meta = {
+2
pkgs/development/compilers/ghc/common-make-native-bignum.nix
··· 645 645 646 646 # Our Cabal compiler name 647 647 haskellCompilerName = "ghc-${version}"; 648 + 649 + bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc; 648 650 }; 649 651 650 652 meta = {