anchor.diff:      sha256 = "1q2pppxv2avhykyxvyq72r5p97rkkiqp19b77yhp85ralbcp4ivw";
     };
   
  +  patches = [
  +    (fetchpatch {
  +      name = "fix-darwin-link-failure.patch";
  +      url = "https://gitlab.haskell.org/ghc/ghc/-/commit/77456387025ca74299ecc70621cbdb62b1b6ffc9.patch";
  +      sha256 = "1g8smrn7hj8cbp9fhrylvmrb15s0xd8lhdgxqnx0asnd4az82gj8";
  +    })
  +  ];
  +
     enableParallelBuilding = true;
   
     outputs = [ "out" "doc" ];
  
positive.code: 
  # build-tools
  , bootPkgs
  , autoconf, automake, coreutils, fetchurl, perl, python3, m4, sphinx, xattr
  , bash
  
  , libiconv ? null, ncurses
  
negative.code:     # See https://github.com/NixOS/nixpkgs/pull/129606#issuecomment-881323743.
      # Linker failure on macOS:
      # https://gitlab.haskell.org/ghc/ghc/-/issues/19950#note_373726
      broken = enableIntegerSimple && hostPlatform.isMusl;
    };
  
  } // lib.optionalAttrs targetPlatform.useAndroidPrebuilt {
  