3 ms·
Here's an example https://gist.github.com/Arkham/31297c1d75fc59f723a50063bc0f5739 https://gist.github.com/Arkham/31297c1d75fc59f723a50063bc0f5... I used this t
by Arkh4m 5y ago
Here's an example https://gist.github.com/Arkham/31297c1d75fc59f723a50063bc0f5739 https://gist.github.com/Arkham/31297c1d75fc59f723a50063bc0f5...
I used this tool to find the specific nixpkgs version https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=ruby https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable...
- ducktective 5y agoThanks. What if we want `ruby 2.3.1` not in any nixpkgs channel?
- Arkh4m 5y agoThen you'd have to learn to read Nix expressions. The original expression that builds all ruby versions is here: https://github.com/NixOS/nixpkgs/blob/6120ac5cd201f6cb593d1b80e861be0342495be9/pkgs/development/interpreters/ruby/default.nix https://github.com/NixOS/nixpkgs/blob/6120ac5cd201f6cb593d1b... Here's an example that shows how to build a customized version for NodeJS https://www.breakds.org/post/nix-shell-for-nodejs https://www.breakds.org/post/nix-shell-for-nodejs
- dmitriid 5y agoWe had this discussion on twitter, so we probably shouldn't repeat it here :) But more-or-less this is a takeaway: https://news.ycombinator.com/item?id=28602561 https://news.ycombinator.com/item?id=28602561
- zepolen 5y agoI'm not on the nix train but this affects rvm too if a particular version isn't available.
- dmitriid 5y agoI wish people stopped coming up with hypotheticals and focused on reality: https://news.ycombinator.com/item?id=28603631 https://news.ycombinator.com/item?id=28603631