summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/xtmpl/default.nix
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2017-03-23 08:56:01 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-30 01:24:17 +0000
commit40158137fd427a8d76eb157962e7dea152605ee7 (patch)
tree48a31ea900407bccca42e91f1f72ef8de2fc2f77 /pkgs/development/ocaml-modules/xtmpl/default.nix
parent2f020cf7c1aba4e2b02f55395f069e8072d75b68 (diff)
downloadnixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar.gz
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar.bz2
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar.lz
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar.xz
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.tar.zst
nixpkgs-40158137fd427a8d76eb157962e7dea152605ee7.zip
ocamlPackages.xtmpl: init at 0.16.0
Diffstat (limited to 'pkgs/development/ocaml-modules/xtmpl/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/xtmpl/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/xtmpl/default.nix b/pkgs/development/ocaml-modules/xtmpl/default.nix
new file mode 100644
index 00000000000..c3d7637e870
--- /dev/null
+++ b/pkgs/development/ocaml-modules/xtmpl/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml
+, re }:
+
+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";
+  };
+
+  buildInputs = [ ocaml findlib ppx_tools js_of_ocaml ];
+  propagatedBuildInputs = [ sedlex uutf re ];
+
+  createFindlibDestdir = true;
+
+  meta = with stdenv.lib; {
+    description = "Xml template library for OCaml";
+    homepage = "https://zoggy.github.io/xtmpl/";
+    license = licenses.lgpl3;
+    platforms = ocaml.meta.platforms or [];
+    maintainers = with maintainers; [ regnat ];
+  };
+}
+
+