nixpkgs/pkgs/development/ocaml-modules/jingoo/default.nix

32 lines
769 B
Nix
Raw Normal View History

2020-05-13 20:04:09 +00:00
{ lib, buildDunePackage, fetchFromGitHub
, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2 }:
2020-05-13 20:04:09 +00:00
buildDunePackage rec {
pname = "jingoo";
version = "1.4.2";
useDune2 = true;
2020-05-13 20:04:09 +00:00
minimumOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "tategakibunko";
repo = "jingoo";
rev = "v${version}";
sha256 = "0q947aik4i4z5wjllhwlkxh60qczwgra21yyrrzwhi9y5bnf8346";
};
2020-05-13 20:04:09 +00:00
buildInputs = [ menhir ];
propagatedBuildInputs = [ ppxlib ppx_deriving re uutf uucp ];
2020-05-13 20:04:09 +00:00
checkInputs = [ ounit2 ];
doCheck = true;
2020-05-13 20:04:09 +00:00
meta = with lib; {
homepage = "https://github.com/tategakibunko/jingoo";
description = "OCaml template engine almost compatible with jinja2";
license = licenses.mit;
maintainers = [ maintainers.ericbmerritt ];
};
}