Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created December 19, 2017 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/a8e01addc88e3243d806e9ef6f051be0 to your computer and use it in GitHub Desktop.
Save grahamc/a8e01addc88e3243d806e9ef6f051be0 to your computer and use it in GitHub Desktop.
grahamc@Morbo> nix-shell -p ruby_2_0 ~
[nix-shell:~]$ ruby --version
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
[nix-shell:~]$ nix-shell -p ruby_2_1^C
[nix-shell:~]$ exit
[130] grahamc@Morbo> nix-shell -p ruby_2_1 ~
[nix-shell:~]$ ruby --version
ruby 2.1.10p492 (2016-04-01) [x86_64-linux]
[nix-shell:~]$ exit
grahamc@Morbo> nix-shell -p ruby_2_2 ~
[nix-shell:~]$ ruby --version
ruby 2.2.8p477 (2017-09-14) [x86_64-linux]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment