Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchFromGitHub, ezjsonm, menhir, menhirLib, ounit }:
2
3buildDunePackage rec {
4 pname = "mustache";
5 version = "3.1.0";
6 duneVersion = "3";
7 src = fetchFromGitHub {
8 owner = "rgrinberg";
9 repo = "ocaml-mustache";
10 rev = "v${version}";
11 sha256 = "19v8rk8d8lkfm2rmhdawfgadji6wa267ir5dprh4w9l1sfj8a1py";
12 };
13
14 nativeBuildInputs = [ menhir ];
15 buildInputs = [ ezjsonm ];
16 propagatedBuildInputs = [ menhirLib ];
17
18 doCheck = true;
19 checkInputs = [ ounit ];
20
21 meta = {
22 description = "Mustache logic-less templates in OCaml";
23 license = lib.licenses.mit;
24 maintainers = [ lib.maintainers.vbgl ];
25 inherit (src.meta) homepage;
26 };
27}