juspay / services-flake

NixOS-like services for Nix flakes
https://community.flake.parts/services-flake
MIT License
327 stars 28 forks source link

Have services provide the relevant devShell? #194

Open srid opened 3 months ago

srid commented 3 months ago

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 commented 2 months ago

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