[Nix-dev] Getting Jekyll to work with a plugin

Gabriel Ebner gebner at gebner.org
Tue Jan 26 08:31:30 CET 2016


Luis Pedro Coelho writes:
> I want to get jekyll to work with a plugin (specifically
> https://github.com/xdissent/jekyll-rst.git) which itself requires
> another package be present (the RbST gem). I cannot even figure out how
> this is supposed to be done in nix.

For a slightly different setup (with the jekyll-assets plugin, and
nodejs as external dependency), I am using a Gemfile, bundix, and
nix-shell.

Gemfile:

  source 'https://rubygems.org'
  gem 'jekyll'
  gem 'jekyll-assets'

shell.nix:

  with (import <nixpkgs> {});

  (bundlerEnv {
    name = "cookbook";
    gemset = ./gemset.nix;
    gemfile = ./Gemfile;
    lockfile = ./Gemfile.lock;
    buildInputs = with pkgs; [ nodejs ];
  }).env

If I remember, all you have to do then is:

   bundler lock
   bundix expr
   nix-shell

Gabriel.


More information about the nix-dev mailing list