2018-02-19 18:32:35 +01:00
|
|
|
{ lib, bundlerEnv, ruby
|
|
|
|
, withOptionalDependencies ? false
|
|
|
|
}:
|
2015-05-16 19:26:07 +02:00
|
|
|
|
2018-02-28 15:08:07 +01:00
|
|
|
# Bundix:
|
|
|
|
# nix-shell -p bundix zlib
|
2016-01-08 04:32:39 +01:00
|
|
|
bundlerEnv rec {
|
2018-02-19 17:22:25 +01:00
|
|
|
name = pname + "-" + version;
|
|
|
|
pname = "jekyll";
|
2018-02-19 18:32:35 +01:00
|
|
|
version = (import
|
|
|
|
(if withOptionalDependencies
|
|
|
|
then ./full/gemset.nix
|
|
|
|
else ./basic/gemset.nix))
|
|
|
|
.jekyll.version;
|
2015-05-16 19:26:07 +02:00
|
|
|
|
2017-03-04 02:08:53 +01:00
|
|
|
inherit ruby;
|
2018-02-19 18:32:35 +01:00
|
|
|
gemdir = if withOptionalDependencies
|
|
|
|
then ./full
|
|
|
|
else ./basic;
|
2015-05-16 19:26:07 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-02-19 18:32:35 +01:00
|
|
|
description = "A blog-aware, static site generator, written in Ruby";
|
|
|
|
longDescription = ''
|
|
|
|
Jekyll is a simple, blog-aware, static site generator, written in Ruby.
|
|
|
|
Think of it like a file-based CMS, without all the complexity. Jekyll
|
|
|
|
takes your content, renders Markdown and Liquid templates, and spits out a
|
|
|
|
complete, static website ready to be served by Apache, Nginx or another
|
|
|
|
web server. Jekyll is the engine behind GitHub Pages, which you can use to
|
|
|
|
host sites right from your GitHub repositories.
|
|
|
|
'';
|
2018-02-19 17:22:25 +01:00
|
|
|
homepage = https://jekyllrb.com/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.mit;
|
2018-02-19 17:22:25 +01:00
|
|
|
maintainers = with maintainers; [ primeos pesterhazy ];
|
2015-05-16 19:26:07 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|