Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { pkgs ? import <nixpkgs> {} }:
- with pkgs;
- mkShell {
- name = "hello-world-ruby-v1";
- buildInputs = [
- ruby_2_6
- ];
- shellHook = ''
- mkdir -p .nix-gems
- export GEM_HOME=$PWD/.nix-gems/$(ruby -e "puts RUBY_VERSION")
- export GEM_PATH=$GEM_HOME
- export PATH=$GEM_HOME/bin:$PATH
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement