@@ -34,8 +34,8 @@ in
3434, enableStaticLibraries ? true
3535, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
3636, homepage ? "http://hackage.haskell.org/package/${pname}"
37−, platforms ? ghc.meta.platforms
38−, hydraPlatforms ? platforms
37+, platforms ? with stdenv.lib.platforms; unix ++ windows # GHC can cross-compile
38+, hydraPlatforms ? null
3939, hyperlinkSource ? true
4040, isExecutable ? false, isLibrary ? !isExecutable
4141, jailbreak ? false
@@ -404,7 +404,7 @@ stdenv.mkDerivation ({
404404 // optionalAttrs broken { inherit broken; }
405405 // optionalAttrs (description != "") { inherit description; }
406406 // optionalAttrs (maintainers != []) { inherit maintainers; }
407− // optionalAttrs (hydraPlatforms != platforms) { inherit hydraPlatforms; }
407+ // optionalAttrs (hydraPlatforms != null) { inherit hydraPlatforms; }
408408 ;
409409
410410}