2017-03-23 08:56:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml
|
2017-08-27 16:44:39 +02:00
|
|
|
, js_of_ocaml-camlp4, camlp4, re }:
|
2017-03-23 08:56:01 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2017-08-27 16:44:39 +02:00
|
|
|
buildInputs = [ ocaml findlib ppx_tools js_of_ocaml js_of_ocaml-camlp4 camlp4 ];
|
2017-03-23 08:56:01 +01:00
|
|
|
propagatedBuildInputs = [ sedlex uutf re ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-04-01 10:54:30 +02:00
|
|
|
dontStrip = true;
|
|
|
|
|
2017-03-23 08:56:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Xml template library for OCaml";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://zoggy.github.io/xtmpl/;
|
2017-03-23 08:56:01 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = with maintainers; [ regnat ];
|
|
|
|
};
|
|
|
|
}
|