Unverified Commit a120e609 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

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.
parent 091b1f19
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ stdenv.mkDerivation (

      # Our Cabal compiler name
      haskellCompilerName = "ghc-${version}";

      bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
    };

    meta = {
+2 −0
Original line number Diff line number Diff line
@@ -838,6 +838,8 @@ stdenv.mkDerivation (
      # TODO(@sternenseemann): there's no stage0:exe:haddock target by default,
      # so haddock isn't available for GHC cross-compilers. Can we fix that?
      hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform;

      bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
    };

    meta = {
+2 −0
Original line number Diff line number Diff line
@@ -645,6 +645,8 @@ stdenv.mkDerivation (

      # Our Cabal compiler name
      haskellCompilerName = "ghc-${version}";

      bootstrapAvailable = lib.meta.availableOn stdenv.buildPlatform bootPkgs.ghc;
    };

    meta = {