Improve flake.nix, add compatibility with pkgs.vscode extensions field #760
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds two new outputs, packages.${system}.vscoq-client.[extension, vsix_archive].
The
extension
derivation builds the out folder in such a way that this derivation can be passed to vscode in Nix to automatically load it as an extension. Specifically, the source (including webpack results in the dist folder) are placed in $out/share/vscode/extensions/maximedenes.vscoq.This is very useful for NixOS users or even people who use a shell.nix to configure their development environment.
The
vsix_archive
derivation builds the .vsix and places it in $out/share/vscode/extensions.This PR also adds the lightweight Alejandra formatter output in flake.nix, which is automatically picked up by nix when running the command
nix fmt
. This is useful for two reasons:nix fmt
in CI, which avoids failing CI when whitespace or other insignificant changes occur in the generated yarn.nix files.