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.
Description
Fixes #32
This PR adds shells and packages for the
cargo
workspace andvscode
extension. Thenixos
andhome-manager
modules for thelsp-ai
package were included because the issuer requested to add this easily to theirhome-manager
configuration.This is a WIP.
Additional work to be done and requests for help
The build for the
lsp-ai
package fails because the build foropenssl-sys
fails and I haven't been able to fix it. Any help around this would be greatly appreciated.The
vscode
extension package needs to be modified to actually callesbuild
but IDK what would be the right approach for that. On the other side, I don't know if packaging it is even worthwhile because it already exists in thevscode
marketplace and thevscode
extensions flake most likely already picked it up so users can add it to their configuration through there.Possible regressions
cargo2nix
modified theCargo.lock
file. If this is a problem I will try and make it so it doesn't do that.node2nix
which thevscode
extension flake uses requires thepackage-lock.json
be downgraded to version 2 but if that is not acceptable i will remove that flake. The reason why that flake is added is to "nixify" the whole repository and there is surely a way to package up thevscode
extension nicely so it can be added tovscode
extensionshome-manager
configuration.Additional info
I use
direnv
for easily switching between environments in my shell so I added.envrc
files. I hope this is not a problem.Some additional lines were added to
.gitignore
to ease development which are optional and could be removed if it is a problem. The.direnv
folder is only relevant if a developer usesdirenv
andresult
is the location wherenix build
saves the results of builds by default so unless someone is testing the result ofnix build
it is not needed.