3 ms·
Nix is not easy nor simple. It's complicated but not complex. re: ruby version In ubuntu I can only install ruby2.7 and I don't which minor version. [1] I woul
by rvanlaar 5y ago
Nix is not easy nor simple. It's complicated but not complex.
re: ruby version
In ubuntu I can only install ruby2.7 and I don't which minor version. [1] I would need to use rvm anyway.
It's the same with nix. What is possible is to pin the version you need by specifying the commit. [2] shows the diff of the commit that moved ruby_2_7 from 2.7.3 to 2.7.4.
Say for example ruby 2.7.4 has a regression and the project needs to stay on 2.7.3.
The revision has for 2.7.3 is used.
[1] > apt search ruby |egrep "^ruby2|^ruby3"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ruby2.7/hirsute-updates,hirsute-security 2.7.2-4ubuntu1.2 amd64
ruby2.7-dev/hirsute-updates,hirsute-security 2.7.2-4ubuntu1.2 amd64
ruby2.7-doc/hirsute-updates,hirsute-updates,hirsute-security,hirsute-security 2.7.2-4ubuntu1.2 all
[2] https://github.com/NixOS/nixpkgs/commit/5f9f17cc11caa07e4a9faa68d308d86e16d0f930 https://github.com/NixOS/nixpkgs/commit/5f9f17cc11caa07e4a9f...
- dmitriid 5y ago> re: ruby version I hoped you would tell me how to pin a specific version in nix, and you didn't. So far, I've asked this question at least three times. This question is either avoided or ignored. Ah yes. There's one "solution" with overlays which is neither maintainable nor scalable. > ruby version In ubuntu Is nix ubuntu? > What is possible is to pin the version you need by specifying the commit. Commit hashes are not versions > I would need to use rvm anyway. It's the same with nix We keep hearing the claim that nix is about builds. Builds often need their dependencies pinned to specific versions. If I still need to use rvm with nix, what's the point? This is especially funny in the context: we're in the comment section to a post claiming that we should ditch our "version managers" while providing an alternative that, so far, looks to be significantly worse at what it claims to do.