Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. { pkgs ? import <nixpkgs> {} }:
  2.  
  3. with pkgs;
  4.  
  5. mkShell {
  6. name = "hello-world-ruby-v1";
  7. buildInputs = [
  8. ruby_2_6
  9. ];
  10.  
  11. shellHook = ''
  12. mkdir -p .nix-gems
  13.  
  14. export GEM_HOME=$PWD/.nix-gems/$(ruby -e "puts RUBY_VERSION")
  15. export GEM_PATH=$GEM_HOME
  16. export PATH=$GEM_HOME/bin:$PATH
  17. '';
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement