2023-05-12 22:09:22 +01:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml
|
2022-03-01 15:42:22 +00:00
|
|
|
, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2
|
|
|
|
}:
|
2015-05-15 16:55:37 +01:00
|
|
|
|
2020-05-13 21:04:09 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "jingoo";
|
2022-03-24 14:06:53 +00:00
|
|
|
version = "1.4.4";
|
2021-01-01 16:53:22 +00:00
|
|
|
|
2023-05-02 05:07:49 +01:00
|
|
|
minimalOCamlVersion = "4.05";
|
2018-07-29 20:18:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tategakibunko";
|
|
|
|
repo = "jingoo";
|
|
|
|
rev = "v${version}";
|
2022-03-24 14:06:53 +00:00
|
|
|
sha256 = "sha256-qIw69OE7wYyZYKnIc9QrmF8MzY5Fg5pBFyIpexmaYxA=";
|
2015-05-15 16:55:37 +01:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
2021-01-31 13:15:46 +00:00
|
|
|
propagatedBuildInputs = [ ppxlib ppx_deriving re uutf uucp ];
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
2023-05-12 22:09:22 +01:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2015-05-15 16:55:37 +01:00
|
|
|
|
|
|
|
|
2020-05-13 21:04:09 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tategakibunko/jingoo";
|
2015-05-15 16:55:37 +01:00
|
|
|
description = "OCaml template engine almost compatible with jinja2";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|