-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: add nix-shell and direnv support #251
Conversation
Thanks @jnoortheen, I added some wording to the README. Why not commit the lock file to the repo? Seems like that defeats the purpose but maybe there's something I'm missing. |
eventhough any nodejs version is supported, it might download an old copy as the time goes and nodejs moves onto represent latest version. It is better be left to users, otherwise we would need to update the lock file regularly. |
That's true but I just tested removing the lock file, adding |
you could add it to .gitignore list. |
Yeah, let me know if your git-foo is better than mine; here's the quick test I did:
|
seems like the issue is reported. NixOS/nix#5810 |
Just barely beat you to it 🙂 doesn't look like there's any indication of intention to fix that issue. Some alternatives:
I still think adding the lock file is the right approach; otherwise, every user (which is only contributors, not the entire set of extension users, to be sure) needs to pin/maintain their own dev environment. So maybe I don't understand, what are other contributors doing? Maintaining a |
Yes shell.nix would be helpful. The node version is not a hard dependency and only used to compile the extension. We want something that gives maximum flexibility for the dependencies. I, myself moved on from nixos and use nix packages rarely. I am not sure about others. I hope, the whole flakes thing need to be more user friendly. |
Cool, I removed the flake in lieu of using Ah, OK. Let me know if you'd like help with maintenance if you're looking to spent less time on nix stuff; I don't have a ton of experience but have moved most of what I have to nixos at this point and am starting to work on getting more familiar through various projects. |
Snuck a quite change in (where this PR was already making modifications) to make the |
Looks good.
Sure, you can help me review the PRs. I think someone from nix-community has to add you to the repo. I will check it. Most of the heavy lifting is done by the rnix-lsp project, so the JS/typescript knowledge is enough for the project |
Here are some misc changes that were helpful to me while developing; namely adding a flake
devShell
and direnv setup such that all the dependencies are automatically made available in the vscode session (if thedirenv
extension is installed).