nix-community / dream2nix

Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]
https://dream2nix.dev
MIT License
985 stars 122 forks source link

haskell: implement discoverer. #179

Open DavHau opened 2 years ago

DavHau commented 2 years ago

The discoverer should be able to read the name from the cabal file without using IFD. This will unbreak nix flake show etc. Also this will allow us to decide which translator should be used for a given haskell project. As a reference, see other discoverers in ./src/subsystems/xxx/discoverers

m1-s commented 2 years ago

I am on it. I will also try to make the discoverer support multipackage projects.

DavHau commented 2 years ago

Just note that projects can consist of more than one package. Not every single package needs to be detected by the discoverer as an individual project. Usually all packages which share the same lock file belong to a single project detected by the discoverer as one project.