2020-05-15 21:57:56 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "jingoo";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "1.4.2";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tategakibunko";
|
|
|
|
repo = "jingoo";
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "0q947aik4i4z5wjllhwlkxh60qczwgra21yyrrzwhi9y5bnf8346";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
buildInputs = [ menhir ];
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ ppxlib ppx_deriving re uutf uucp ];
|
2020-05-15 21:57:56 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tategakibunko/jingoo";
|
|
|
|
description = "OCaml template engine almost compatible with jinja2";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|