1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

ocamlPackages.xtmpl: init at 0.16.0

This commit is contained in:
regnat 2017-03-23 08:56:01 +01:00 committed by Vincent Laporte
parent 2f020cf7c1
commit 40158137fd
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml
, re }:
if stdenv.lib.versionOlder ocaml.version "4.03"
then throw "xtmpl not supported for ocaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "xtmpl-${version}";
version = "0.16.0";
src = fetchFromGitHub {
owner = "zoggy";
repo = "xtmpl";
rev = version;
sha256 = "1dj5b4b266y4d8q3v1g0xsivz4vkhj0gi0jis37w84xcnlgiik8k";
};
buildInputs = [ ocaml findlib ppx_tools js_of_ocaml ];
propagatedBuildInputs = [ sedlex uutf re ];
createFindlibDestdir = true;
meta = with stdenv.lib; {
description = "Xml template library for OCaml";
homepage = "https://zoggy.github.io/xtmpl/";
license = licenses.lgpl3;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ regnat ];
};
}

View file

@ -555,6 +555,8 @@ let
xml-light = callPackage ../development/ocaml-modules/xml-light { };
xtmpl = callPackage ../development/ocaml-modules/xtmpl { };
yojson = callPackage ../development/ocaml-modules/yojson { };
zarith = callPackage ../development/ocaml-modules/zarith { };