···421422 # Our Cabal compiler name
423 haskellCompilerName = "ghc-${version}";
424- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
000425 # Normal GHC derivations expose the hadrian derivation used to build them
426 # here. In the case of bindists we just make sure that the attribute exists,
427 # as it is used for checking if a GHC derivation has been built with hadrian.
···421422 # Our Cabal compiler name
423 haskellCompilerName = "ghc-${version}";
424+ }
425+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
426+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
427+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
428 # Normal GHC derivations expose the hadrian derivation used to build them
429 # here. In the case of bindists we just make sure that the attribute exists,
430 # 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
···417418 # Our Cabal compiler name
419 haskellCompilerName = "ghc-${version}";
420- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
000421 # Normal GHC derivations expose the hadrian derivation used to build them
422 # here. In the case of bindists we just make sure that the attribute exists,
423 # as it is used for checking if a GHC derivation has been built with hadrian.
···417418 # Our Cabal compiler name
419 haskellCompilerName = "ghc-${version}";
420+ }
421+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
422+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
423+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
424 # Normal GHC derivations expose the hadrian derivation used to build them
425 # here. In the case of bindists we just make sure that the attribute exists,
426 # 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
···403404 # Our Cabal compiler name
405 haskellCompilerName = "ghc-${version}";
406- } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
000407 # Normal GHC derivations expose the hadrian derivation used to build them
408 # here. In the case of bindists we just make sure that the attribute exists,
409 # as it is used for checking if a GHC derivation has been built with hadrian.
···403404 # Our Cabal compiler name
405 haskellCompilerName = "ghc-${version}";
406+ }
407+ # We duplicate binDistUsed here since we have a sensible default even if no bindist is avaible,
408+ # this makes sure that getting the `meta` attribute doesn't throw even on unsupported platforms.
409+ // lib.optionalAttrs (ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}.isHadrian or false) {
410 # Normal GHC derivations expose the hadrian derivation used to build them
411 # here. In the case of bindists we just make sure that the attribute exists,
412 # as it is used for checking if a GHC derivation has been built with hadrian.