about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mustache/default.nix
blob: ce2201c37873fdee65df4add55b739e28dcb30aa (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
{ lib, buildDunePackage, fetchFromGitHub, ezjsonm, menhir, menhirLib, ounit }:

buildDunePackage rec {
  pname = "mustache";
  version = "3.1.0";
  duneVersion = "3";
  src = fetchFromGitHub {
    owner = "rgrinberg";
    repo = "ocaml-mustache";
    rev = "v${version}";
    sha256 = "19v8rk8d8lkfm2rmhdawfgadji6wa267ir5dprh4w9l1sfj8a1py";
  };

  nativeBuildInputs = [ menhir ];
  buildInputs = [ ezjsonm ];
  propagatedBuildInputs = [ menhirLib ];

  doCheck = true;
  checkInputs = [ ounit ];

  meta = {
    description = "Mustache logic-less templates in OCaml";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vbgl ];
    inherit (src.meta) homepage;
  };
}