I want to do local development of a GitHub Pages site. GitHub Pages serves your site using Jekyll, which is written in Ruby. The exact dependencies are listed at
and available as JSON on
The dependencies (apart from Ruby itself) are also available as a Ruby package (“gem”):
Given this, is there a simple shell.nix automatically giving a local development environment matching the environment GitHub Pages runs on?
At the very least, if one gives up on automatically keeping up with the Ruby version used by GitHub Pages, then
Ruby together with
pages-gem should suffice. It is however not clear to me how to accomplish this.
I looked at
and I also looked at
As far as I can see, those approaches generate a shell.nix (and additional files) fixing a development environment on whatever is specified by the current version of
pages-gem. Thus when
pages-gem is updated this development environment would become outdated. And in any case, ideally one should not need to deal with the large auto-generated
gemset.nix files since basically the desired development environment is fully specified by the two lines in the