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 641 # Our Cabal compiler name 642 haskellCompilerName = "ghc-${version}"; 643 }; 644 645 meta = {
··· 640 641 # Our Cabal compiler name 642 haskellCompilerName = "ghc-${version}"; 643 + 644 + bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc; 645 }; 646 647 meta = {
+2
pkgs/development/compilers/ghc/common-hadrian.nix
··· 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 843 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 }; 844 845 meta = {
+2
pkgs/development/compilers/ghc/common-make-native-bignum.nix
··· 645 646 # Our Cabal compiler name 647 haskellCompilerName = "ghc-${version}"; 648 }; 649 650 meta = {
··· 645 646 # Our Cabal compiler name 647 haskellCompilerName = "ghc-${version}"; 648 + 649 + bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc; 650 }; 651 652 meta = {