Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake.nix: devShell: use devenv #4

Merged
merged 2 commits into from
Jun 5, 2024
Merged

flake.nix: devShell: use devenv #4

merged 2 commits into from
Jun 5, 2024

Conversation

rgoulter
Copy link
Owner

@rgoulter rgoulter commented Jun 5, 2024

Rationale

Nix shells (nix-shell, nix develop, which both typically make use of nixpkgs' mkShell) provide a good DX by providing tools/libraries needed to build a project. -- e.g. You get to have gradle in PATH without having to copy/paste installation instructions from README.

Previously, I took either/or of:

  1. write mkShell in the repository that uses it; duplicating Nix code (e.g. packages = [compiler lsp linter]) in each repository.
  2. write mkShell in a separate repository, referencing this from each repository.

These each have advantages/disadvantages.

Using devenv is similar to (2) above; except that maintaining [compiler lsp linter] is done in a repo which others using the tool benefit from.

@rgoulter rgoulter force-pushed the use-devenv-mkshell branch from 15bb033 to 614fa45 Compare June 5, 2024 10:57
@rgoulter rgoulter merged commit cfdf0f4 into master Jun 5, 2024
5 checks passed
@rgoulter rgoulter deleted the use-devenv-mkshell branch June 5, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant