[Nix-dev] Getting Jekyll to work with a plugin
Luis Pedro Coelho
luis at luispedro.org
Tue Jan 26 22:42:06 CET 2016
Thanks Gabriel,
Based on what you wrote, I was able to get this working. This is what I
ended up with in the end:
Gemfile:
source 'https://rubygems.org'
gem 'jekyll'
gem 'rdiscount'
gem 'RedCloth'
gem 'RbST'
default.nix:
with (import <nixpkgs> {});
let
jenv = bundlerEnv {
name = "jekyll_rbst_env";
gemset = ./gemset.nix;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
};
in
stdenv.mkDerivation {
name = "luispedro_org";
buildInputs = with pkgs; [
jenv
zsh
python
python27Packages.docutils
python27Packages.pygments
glibcLocales
];
# When used as `nix-shell --pure`
shellHook = ''
export LC_ALL='en_US.UTF-8'
'';
# used when building environments
extraCmds = ''
export LC_ALL='en_US.UTF-8'
'';
}
Cheers,
--
Luis Pedro Coelho | EMBL | http://luispedro.org
My blog: http://metarabbit.wordpress.com
On Tue, 26 Jan 2016, at 08:31 AM, Gabriel Ebner wrote:
>
> 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.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list