···421421422422 # Our Cabal compiler name
423423 haskellCompilerName = "ghc-${version}";
424424- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
424424+ }
425425+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
426426+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
427427+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
425428 # Normal GHC derivations expose the hadrian derivation used to build them
426429 # here. In the case of bindists we just make sure that the attribute exists,
427430 # as it is used for checking if a GHC derivation has been built with hadrian.
+4-1
pkgs/development/compilers/ghc/8.10.7-binary.nix
···417417418418 # Our Cabal compiler name
419419 haskellCompilerName = "ghc-${version}";
420420- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
420420+ }
421421+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
422422+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
423423+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
421424 # Normal GHC derivations expose the hadrian derivation used to build them
422425 # here. In the case of bindists we just make sure that the attribute exists,
423426 # as it is used for checking if a GHC derivation has been built with hadrian.
+4-1
pkgs/development/compilers/ghc/9.2.4-binary.nix
···403403404404 # Our Cabal compiler name
405405 haskellCompilerName = "ghc-${version}";
406406- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
406406+ }
407407+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
408408+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
409409+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
407410 # Normal GHC derivations expose the hadrian derivation used to build them
408411 # here. In the case of bindists we just make sure that the attribute exists,
409412 # as it is used for checking if a GHC derivation has been built with hadrian.