services-flake icon indicating copy to clipboard operation
services-flake copied to clipboard

Have services provide the relevant devShell?

Open srid opened this issue 1 year ago • 1 comments

For eg., the postgres service could provide a devShell output that includes psql cli.

Ref (from an internal project that @shivaraj-bh should have access to):

image

Can we write that as:

pkgs.mkShell {
  inputsFrom = {
    config.devShells.common
    config.haskellProjects.default.outputs.devShell
    config.process-compose.services.services.devShell
  };
}

?

Because, hiding the details in flake.nix is generally a good thing.

srid avatar May 21 '24 21:05 srid

In the meanwhile, the user must know where to get the package from and then manually add them to their devShell. Not to mention leave a comment, because this is not very self-documenting.

image

srid avatar Jun 04 '24 18:06 srid