about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorvbgl <vbgl@users.noreply.github.com>2015-03-13 22:52:58 +0100
committervbgl <vbgl@users.noreply.github.com>2015-03-13 22:52:58 +0100
commit5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5 (patch)
tree16400dbd4a3cf84a6f69d8bb900da59ef6cacb7b /pkgs/development/ocaml-modules
parentf4146b7f2db8c28628147841522d721159fbfe40 (diff)
parent7f07b33e4dcdfbb27153384a55587d11bfe3fdfd (diff)
downloadnixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar.gz
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar.bz2
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar.lz
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar.xz
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.tar.zst
nixlib-5dcedbb6e4224ccf6bd27dcc4a54f4018f41d1d5.zip
Merge pull request #6791 from romildo/xml-light
Add ocaml-xml-light
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/xml-light/default.nix43
1 files changed, 43 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 000000000000..5eb4fbfd6b15
--- /dev/null
+++ b/pkgs/development/ocaml-modules/xml-light/default.nix
@@ -0,0 +1,43 @@
+{stdenv, fetchurl, ocaml, findlib}:
+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
+  '';
+  
+  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.
+    '';
+    homepage = "http://tech.motion-twin.com/xmllight.html";
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = [ stdenv.lib.maintainers.romildo ];
+    platforms = ocaml.meta.platforms;
+  };
+}