NixOS / cabal2nix

Generate Nix build instructions from a Cabal file
https://haskell4nix.readthedocs.io
Other
352 stars 154 forks source link

Add options for --omit-tests and --omit-benchmarks #593

Open locallycompact opened 1 year ago

locallycompact commented 1 year ago

This address this https://github.com/NixOS/cabal2nix/issues/531

Kind of, it's independent of the dontCheck attribute. If --no-check isn't on but --omit-tests is, then the build will fail with a missing dependency. I'm not sure how to split this out properly but it gets rid of the unnecessary evaluation inputs in the case where the tests aren't used.