about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix b/nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix
new file mode 100644
index 000000000000..94bcdb45f328
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix
@@ -0,0 +1,23 @@
+{ lib, buildDunePackage, fetchurl, re, uutf }:
+
+buildDunePackage rec {
+  pname = "tyxml";
+  version = "4.3.0";
+
+  src = fetchurl {
+    url = "https://github.com/ocsigen/tyxml/releases/download/${version}/tyxml-${version}.tbz";
+    sha256 = "1hxzppfvsdls2y8qiwvz31hmffzh2hgglf01am1vzf2f31mxf6vf";
+  };
+
+  propagatedBuildInputs = [ uutf re ];
+
+  meta = with lib; {
+    homepage = http://ocsigen.org/tyxml/;
+    description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [
+      gal_bolle vbgl
+      ];
+  };
+
+}