Issue description
Completions in Haskell currently break cross compilation.
Since #49477 we have a function that does this generically for Haskell packages. This can be improved by either:
- not adding completions when cross compiling
- emulating the behavior of optparse-applicative to generate the very simple scripts in plain bash, which seems feasible. The duplicated logic can then be tested against the native optparse-applicative behavior.
Steps to reproduce
Cross compile a package with completions, like stack. It will call the build output and fail.
Note that stack currently has its own override in hackage2nix, which is probably best to disable in favor of the library functions.
Issue description
Completions in Haskell currently break cross compilation.
Since #49477 we have a function that does this generically for Haskell packages. This can be improved by either:
Steps to reproduce
Cross compile a package with completions, like stack. It will call the build output and fail.
Note that stack currently has its own override in hackage2nix, which is probably best to disable in favor of the library functions.