Open
Description
I'd like to use build-type: Hooks
in a package that has internal sublibraries.
Since packages containing internal sublibraries force a per-component build thaty is currently not possible:
Error:
Internal libraries only supported with per-component builds.
Per-component builds were disabled because build-type is Hooks
In the inplace package 'thrift-lib-0.1.0.1'
More specifically, building thrift-lib
requires the compilation of some Thrift interface files to Haskell modules;
See https://github.com/facebookincubator/hsthrift/blob/e84c886276f39f6c55389c1f1bf96f90fe76f49e/Makefile#L29 for how it is currently done. As this compilation can be done per component, I wanted to add per-component hooks for the generation of the Haskell sources.
If a SetupHook
files specifies only per-component hooks, then it should be safe to allow this in a per-component build, shouldn't it?