Specifying different package sets for packages within the same project #205
-
I have a project with the following directory structure
I'd like to build the subdirs |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The current version in the example only caters to using the default project.cabal https://github.com/srid/haskell-multi-nix/blob/c85563721c388629fa9e538a1d97274861bc8321/flake.nix |
Beta Was this translation helpful? Give feedback.
-
Local packages can be specified in the same manner as packages pointing to custom source paths: https://zero-to-flakes.com/haskell-flake/dependency#path If you want them to use different package sets, you want to define distinct projects (because each project has its own package set and overrides): haskellProjects.frontend-project = {
packages = {
frontend.source = ./frontend;
};
};
haskellProjects.backend-project = {
packages = {
backend.source = ./backend;
};
}; |
Beta Was this translation helpful? Give feedback.
Local packages can be specified in the same manner as packages pointing to custom source paths: https://zero-to-flakes.com/haskell-flake/dependency#path
If you want them to use different package sets, you want to define distinct projects (because each project has its own package set and overrides):