Open
Description
What is your suggestion?
It would be nice if the NixPkgs version is always up-to-date with the latest release.
Why do you want this feature?
In can only install code-server through nix due to some requirements, and I would like to always have the up-to-date version, specially important due to copilot/copilot-chat
Are there any workarounds to get this functionality today?
I can modify the nixpkgs and build it locally.
Are you interested in submitting a PR for this?
I may be interested to maintain nixpkgs version, but when I tried to modify the nixpkgs repository, I failed to compile due to some yarn errors, that I don't know if they are my fault or that this pkg needs to be compiled with some extra nix configs.
Activity
blotero commentedon Feb 6, 2024
I'm also having yarn related issues when building with nix:
code-asher commentedon Feb 6, 2024
Yeah I have been trying to get nixpkgs updated but I just keep running into issues. I got an error similar to the above, it seems to be the line in the install phase that installs production dependencies. I see that we use
--ignore-scripts
combined withfind
in earlier invocations ofyarn
so I tried swapping it out for that but then I got these:And I have not looked into this yet. But it feels like maybe I just made a typo somewhere.
Rucadi commentedon Feb 8, 2024
@code-asher I've advanced a little bit in this, however yarn/npm and js ecosystems are not my topic.
I managed to compile the latest code-server version modifying it slightly with this commit:
Rucadi/nixpkgs@2126fca
I had problems with argon2 module missing when trying to execute the app, after that, I manage to go further, but still encounter problems.
I think that this is something that probably someone experienced can easily handle.
code-asher commentedon Feb 8, 2024
Ah yeah probably because of
--ignore-scripts
it is not running the post-install script that doescd lib/vscode && yarn install
so the Node modules inlib/vscode
are all missing.code-asher commentedon Feb 8, 2024
I bet the post-install scripts are responsible for building the native modules like
argon2
as well.