Merge pull request #37460 from obsidiansystems/host-meta-platforms-fixes

treewide: `meta.platforms` fixes now that it tracks the host platform
This commit is contained in:
John Ericson
2018-03-20 13:08:54 -04:00
committed by GitHub
3 changed files with 9 additions and 6 deletions

View File

@@ -34,8 +34,8 @@ in
, enableStaticLibraries ? true
, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
, homepage ? "http://hackage.haskell.org/package/${pname}"
, platforms ? ghc.meta.platforms
, hydraPlatforms ? platforms
, platforms ? with stdenv.lib.platforms; unix ++ windows # GHC can cross-compile
, hydraPlatforms ? null
, hyperlinkSource ? true
, isExecutable ? false, isLibrary ? !isExecutable
, jailbreak ? false
@@ -404,7 +404,7 @@ stdenv.mkDerivation ({
// optionalAttrs broken { inherit broken; }
// optionalAttrs (description != "") { inherit description; }
// optionalAttrs (maintainers != []) { inherit maintainers; }
// optionalAttrs (hydraPlatforms != platforms) { inherit hydraPlatforms; }
// optionalAttrs (hydraPlatforms != null) { inherit hydraPlatforms; }
;
}