haskell-generic-builder: improve meta.platforms vs. meta.hydraPlatforms logic
hydraPlatforms now defaults to the value of meta.platforms rather than defaulting to ghc.meta.hydraPlatforms. This solution is, in fact, still sub-optimal. See https://github.com/NixOS/nixpkgs/issues/9608 for further details.
This commit is contained in:
parent
07542d12ea
commit
dc5bf39bfe
@ -22,7 +22,8 @@
|
|||||||
, enableStaticLibraries ? true
|
, enableStaticLibraries ? true
|
||||||
, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
|
, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
|
||||||
, homepage ? "http://hackage.haskell.org/package/${pname}"
|
, homepage ? "http://hackage.haskell.org/package/${pname}"
|
||||||
, hydraPlatforms ? ghc.meta.hydraPlatforms or ghc.meta.platforms
|
, platforms ? ghc.meta.platforms
|
||||||
|
, hydraPlatforms ? platforms
|
||||||
, hyperlinkSource ? true
|
, hyperlinkSource ? true
|
||||||
, isExecutable ? false, isLibrary ? !isExecutable
|
, isExecutable ? false, isLibrary ? !isExecutable
|
||||||
, jailbreak ? false
|
, jailbreak ? false
|
||||||
@ -31,7 +32,6 @@
|
|||||||
, doHaddock ? !stdenv.isDarwin || stdenv.lib.versionAtLeast ghc.version "7.8"
|
, doHaddock ? !stdenv.isDarwin || stdenv.lib.versionAtLeast ghc.version "7.8"
|
||||||
, passthru ? {}
|
, passthru ? {}
|
||||||
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? []
|
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? []
|
||||||
, platforms ? ghc.meta.platforms
|
|
||||||
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
||||||
, testTarget ? ""
|
, testTarget ? ""
|
||||||
, broken ? false
|
, broken ? false
|
||||||
|
Loading…
Reference in New Issue
Block a user