Use the following to generate gemset.nix
:
nix run nixpkgs.bundix --command bundix
Then run:
nix-shell
The shell will start a mysqld instance that listens on a local Unix socket. It will be killed when the shell is killed.
Next you can run:
rspec
or
rails server