2021-01-11 12:49:15 +00:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib}:
|
2015-03-13 18:30:31 +00:00
|
|
|
let
|
|
|
|
pname = "xml-light";
|
|
|
|
version = "2.4";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ncannasse/${pname}/archive/${version}.tar.gz";
|
|
|
|
sha256 = "10b55qf6mvdp11ny3h0jv6k6wrs78jr9lhsiswl0xya7z8r8j0a2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make all
|
|
|
|
make opt
|
|
|
|
'';
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2015-03-13 18:30:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
make install_ocamlfind
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -vai doc $out/share/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Minimal Xml parser and printer for OCaml";
|
|
|
|
longDescription = ''
|
|
|
|
Xml-Light provides functions to parse an XML document into an OCaml
|
|
|
|
data structure, work with it, and print it back to an XML
|
|
|
|
document. It support also DTD parsing and checking, and is
|
|
|
|
entirely written in OCaml, hence it does not require additional C
|
|
|
|
library.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://tech.motion-twin.com/xmllight.html";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-03-13 18:30:31 +00:00
|
|
|
};
|
|
|
|
}
|