nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 ezjsonm,
6 menhir,
7 menhirLib,
8 ounit2,
9}:
10
11buildDunePackage rec {
12 pname = "mustache";
13 version = "3.3.0";
14 src = fetchFromGitHub {
15 owner = "rgrinberg";
16 repo = "ocaml-mustache";
17 tag = "v${version}";
18 hash = "sha256-7rdp7nrjc25/Nuj/cf78qxS3Qy4ufaNcKjSnYh4Ri8U=";
19 };
20
21 nativeBuildInputs = [ menhir ];
22 propagatedBuildInputs = [ menhirLib ];
23
24 doCheck = false; # Disabled because of "Error: Program mustache-ocaml not found in the tree or in PATH"
25 checkInputs = [
26 ezjsonm
27 ounit2
28 ];
29
30 meta = {
31 description = "Mustache logic-less templates in OCaml";
32 license = lib.licenses.mit;
33 maintainers = [ lib.maintainers.vbgl ];
34 inherit (src.meta) homepage;
35 };
36}