···367 '';
368369 checkPhase =
370- # GHC (=> shellcheck) isn't supported on some platforms (such as risc-v)
371- # but we still want to use writeShellApplication on those platforms
372 let
373- shellcheckSupported =
374- lib.meta.availableOn stdenv.buildPlatform shellcheck-minimal.compiler
375- && (builtins.tryEval shellcheck-minimal.compiler.outPath).success;
376 excludeFlags = lib.optionals (excludeShellChecks != [ ]) [
377 "--exclude"
378 (lib.concatStringsSep "," excludeShellChecks)
379 ];
380- shellcheckCommand = lib.optionalString shellcheckSupported ''
00381 # use shellcheck which does not include docs
382 # pandoc takes long to build and documentation isn't needed for just running the cli
383 ${lib.getExe shellcheck-minimal} ${
···367 '';
368369 checkPhase =
00370 let
000371 excludeFlags = lib.optionals (excludeShellChecks != [ ]) [
372 "--exclude"
373 (lib.concatStringsSep "," excludeShellChecks)
374 ];
375+ # GHC (=> shellcheck) isn't supported on some platforms (such as risc-v)
376+ # but we still want to use writeShellApplication on those platforms
377+ shellcheckCommand = lib.optionalString shellcheck-minimal.compiler.bootstrapAvailable ''
378 # use shellcheck which does not include docs
379 # pandoc takes long to build and documentation isn't needed for just running the cli
380 ${lib.getExe shellcheck-minimal} ${
···839 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
840 # so haddock isn't available for GHC cross-compilers. Can we fix that?
841 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;
00842 };
843844 meta = {
···839 # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
840 # so haddock isn't available for GHC cross-compilers. Can we fix that?
841 hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;
842+843+ bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
844 };
845846 meta = {