about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/jingoo/default.nix
blob: 595a5cbb18a7667a706feed5e9283529e55819b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, buildDunePackage, fetchFromGitHub, ocaml
, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2
}:

buildDunePackage rec {
  pname = "jingoo";
  version = "1.4.4";

  minimalOCamlVersion = "4.05";

  src = fetchFromGitHub {
    owner = "tategakibunko";
    repo = "jingoo";
    rev = "v${version}";
    sha256 = "sha256-qIw69OE7wYyZYKnIc9QrmF8MzY5Fg5pBFyIpexmaYxA=";
  };

  nativeBuildInputs = [ menhir ];
  propagatedBuildInputs = [ ppxlib ppx_deriving re uutf uucp ];
  checkInputs = [ ounit2 ];
  doCheck = lib.versionAtLeast ocaml.version "4.08";


  meta = with lib; {
    homepage = "https://github.com/tategakibunko/jingoo";
    description = "OCaml template engine almost compatible with jinja2";
    mainProgram = "jingoo";
    license = licenses.mit;
    maintainers = [ maintainers.ericbmerritt ];
  };
}