···137137 # instead of `libtinfo.so.*.`
138138 { nixPackage = ncurses6; fileToCheckFor = "libncursesw.so.6"; }
139139 ];
140140+ isHadrian = true;
140141 };
141142 };
142143 };
···416417417418 # Our Cabal compiler name
418419 haskellCompilerName = "ghc-${version}";
420420+ } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
421421+ # Normal GHC derivations expose the hadrian derivation used to build them
422422+ # here. In the case of bindists we just make sure that the attribute exists,
423423+ # as it is used for checking if a GHC derivation has been built with hadrian.
424424+ # The isHadrian mechanism will become obsolete with GHCs that use hadrian
425425+ # exclusively, i.e. 9.6 (and 9.4?).
426426+ hadrian = null;
419427 };
420428421429 meta = rec {