git.iko.soy/typeable/nixpkgs
on master help sign in
haskell-generic-builder: Default to window + unix platforms,

Since GHC is a cross compiler, it's perfectly possible to make haskell binaries on platforms without GHCs. `windows ++ unix` seems good enough for now. Also don't default `hydraPlatforms` to `platforms`. The former must be a list of systems (strings), but the latter is a list of systems or patterns.

commit65e24f22e69ea18b5ec638f89a87e070d4e2154a authorJohn Ericson <John.Ericson@Obsidian.Systems> dateTue 20 Mar 2018, 11:51 (9 years ago) parente49c14c
1 file changed+3−3
pkgs/development/haskell-modules/generic-builder.nix+3−3
pkgs/development/haskell-modules/generic-builder.nix+3−3
@@ -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}