Add override flags for Nix generic-builder
Closed this issue · 3 comments
Currently, cabal2nix supports following CLI flags:
--no-check
--no-haddock
--no-hyperlink-source
Appropriate CLI flags for stack2nix should accept a list of parameters (packages); an empty list means override globally for all packages.
Update.
Stack packages set takes into account only library and executable dependencies and completely ignores test dependencies of its packages. Thus, to be sound, Stack packages-override should be built with no-check
and no-haddock
arguments.
Update
The current implementation of cabal2nix
fromGenericPackageDescription
marks packages broken
if they have missing dependencies. Since Stackage is only a subset of Hackage (see the previous comment), test and benchmark dependencies may be missing. As an example, see lts-6.35
unordered-containers
package that miss hashmap
benchmark dependency.
Stackage packages that miss test or benchmark dependency should not be marked as broken.