Simple example of how to make use of nixpkgs-ruby
at master 14 lines 591 B view raw view rendered
1# Setup steps for new project 2 3Make a .ruby-version file with your chosen ruby version. Create a Gemfile with your gems. Run the following commands to make a lockfile. 4```bash 5nix flake init --template github:bobvanderlinden/nixpkgs-ruby# 6nix develop 7bundle lock 8bundix 9``` 10Now you can add gems to the buildInputs and enable direnv. Reload the environment and you are ready to work with your chosen version of Ruby and associated Gems. 11```bash 12direnv allow <foldername> 13``` 14Credit to Bob van der Linden <bobvanderlinden@gmail.com> for creating https://github.com/bobvanderlinden/nixpkgs-ruby