haskell: add *FrameworkDepends arguments
This commit is contained in:
parent
218ada1ba7
commit
c425a1fc50
@ -35,6 +35,10 @@ in
|
|||||||
, enableStaticLibraries ? !hostPlatform.isWindows
|
, enableStaticLibraries ? !hostPlatform.isWindows
|
||||||
, enableHsc2hsViaAsm ? hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4"
|
, enableHsc2hsViaAsm ? hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4"
|
||||||
, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
|
, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
|
||||||
|
# On macOS, statically linking against system frameworks is not supported;
|
||||||
|
# see https://developer.apple.com/library/content/qa/qa1118/_index.html
|
||||||
|
# They must be propagated to the environment of any executable linking with the library
|
||||||
|
, libraryFrameworkDepends ? [], executableFrameworkDepends ? []
|
||||||
, homepage ? "https://hackage.haskell.org/package/${pname}"
|
, homepage ? "https://hackage.haskell.org/package/${pname}"
|
||||||
, platforms ? with stdenv.lib.platforms; unix ++ windows # GHC can cross-compile
|
, platforms ? with stdenv.lib.platforms; unix ++ windows # GHC can cross-compile
|
||||||
, hydraPlatforms ? null
|
, hydraPlatforms ? null
|
||||||
@ -47,8 +51,8 @@ in
|
|||||||
, doHaddock ? !(ghc.isHaLVM or false)
|
, doHaddock ? !(ghc.isHaLVM or false)
|
||||||
, passthru ? {}
|
, passthru ? {}
|
||||||
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? [], benchmarkPkgconfigDepends ? []
|
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? [], benchmarkPkgconfigDepends ? []
|
||||||
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? [], testFrameworkDepends ? []
|
||||||
, benchmarkDepends ? [], benchmarkHaskellDepends ? [], benchmarkSystemDepends ? []
|
, benchmarkDepends ? [], benchmarkHaskellDepends ? [], benchmarkSystemDepends ? [], benchmarkFrameworkDepends ? []
|
||||||
, testTarget ? ""
|
, testTarget ? ""
|
||||||
, broken ? false
|
, broken ? false
|
||||||
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
||||||
@ -178,11 +182,11 @@ let
|
|||||||
nativeBuildInputs = [ ghc nativeGhc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
|
nativeBuildInputs = [ ghc nativeGhc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
|
||||||
setupHaskellDepends ++
|
setupHaskellDepends ++
|
||||||
buildTools ++ libraryToolDepends ++ executableToolDepends;
|
buildTools ++ libraryToolDepends ++ executableToolDepends;
|
||||||
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
|
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends ++ libraryFrameworkDepends;
|
||||||
otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
|
otherBuildInputs = setupHaskellDepends ++ extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++ executableFrameworkDepends ++
|
||||||
allPkgconfigDepends ++
|
allPkgconfigDepends ++
|
||||||
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends ++ testFrameworkDepends) ++
|
||||||
optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends ++ benchmarkFrameworkDepends);
|
||||||
|
|
||||||
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user