git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.mustache: init at 3.1.0

mustache.js logic-less templates in OCaml

commit07e3aab0095f215f574a9639e85ad95cd82297d7 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 29 Jul 2020, 11:13 (6 years ago) parent3662615
2 files changed+27
pkgs/development/ocaml-modules/mustache/default.nix+25 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/mustache/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ lib, buildDunePackage, fetchFromGitHub, ezjsonm, menhir, ounit }:
2+
3+buildDunePackage rec {
4+ pname = "mustache";
5+ version = "3.1.0";
6+ src = fetchFromGitHub {
7+ owner = "rgrinberg";
8+ repo = "ocaml-mustache";
9+ rev = "v${version}";
10+ sha256 = "19v8rk8d8lkfm2rmhdawfgadji6wa267ir5dprh4w9l1sfj8a1py";
11+ };
12+
13+ buildInputs = [ ezjsonm ];
14+ propagatedBuildInputs = [ menhir ];
15+
16+ doCheck = true;
17+ checkInputs = [ ounit ];
18+
19+ meta = {
20+ description = "Mustache logic-less templates in OCaml";
21+ license = lib.licenses.mit;
22+ maintainers = [ lib.maintainers.vbgl ];
23+ inherit (src.meta) homepage;
24+ };
25+}
pkgs/top-level/ocaml-packages.nix+2
@@ -569,6 +569,8 @@ let
569569
570570 mtime = callPackage ../development/ocaml-modules/mtime { };
571571
572+ mustache = callPackage ../development/ocaml-modules/mustache { };
573+
572574 nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
573575
574576 notty = callPackage ../development/ocaml-modules/notty { };