diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/xml-light/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/xml-light/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/xml-light/default.nix b/pkgs/development/ocaml-modules/xml-light/default.nix new file mode 100644 index 00000000000..8eb700a4d14 --- /dev/null +++ b/pkgs/development/ocaml-modules/xml-light/default.nix @@ -0,0 +1,42 @@ +{ stdenv, lib, fetchFromGitHub, ocaml, findlib }: + +stdenv.mkDerivation rec { + pname = "ocaml${ocaml.version}-xml-light"; + version = "2.4"; + + src = fetchFromGitHub { + owner = "ncannasse"; + repo = "xml-light"; + rev = version; + sha256 = "sha256-2txmkl/ZN5RGaLQJmr+orqwB4CbFk2RpLJd4gr7kPiE="; + }; + + nativeBuildInputs = [ ocaml findlib ]; + + strictDeps = true; + + createFindlibDestdir = true; + + installPhase = '' + runHook preInstall + make install_ocamlfind + mkdir -p $out/share + cp -vai doc $out/share/ + runHook postInstall + ''; + + 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. + ''; + homepage = "http://tech.motion-twin.com/xmllight.html"; + license = lib.licenses.lgpl21; + maintainers = [ lib.maintainers.romildo ]; + inherit (ocaml.meta) platforms; + }; +} |