about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/fmt
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-10-25 19:19:35 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-11-23 10:01:31 +0100
commit66b9602a2fb61cc4ed2181ba43476fcc1740ce96 (patch)
tree9dbb3875825bd26cd9233ab860b495384f3a9531 /pkgs/development/ocaml-modules/fmt
parent0a309311ddf4d4ae0539c75eea036775f3d54faa (diff)
ocamlPackages.fmt: init at 0.8.0
fmt is an OCaml library of Format pretty-printer combinators.

Homepage: http://erratique.ch/software/fmt
Diffstat (limited to 'pkgs/development/ocaml-modules/fmt')
-rw-r--r--pkgs/development/ocaml-modules/fmt/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/fmt/default.nix b/pkgs/development/ocaml-modules/fmt/default.nix
new file mode 100644
index 0000000000000..9994d156a4c25
--- /dev/null
+++ b/pkgs/development/ocaml-modules/fmt/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, cmdliner }:
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-fmt-0.8.0";
+
+  src = fetchurl {
+    url = http://erratique.ch/software/fmt/releases/fmt-0.8.0.tbz;
+    sha256 = "16y7ibndnairb53j8a6qgipyqwjxncn4pl9jiw5bxjfjm59108px";
+  };
+
+  unpackCmd = "tar xjf $src";
+
+  buildInputs = [ ocaml findlib ocamlbuild opam topkg cmdliner ];
+
+  inherit (topkg) buildPhase installPhase;
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = http://erratique.ch/software/fmt;
+    license = stdenv.lib.licenses.isc;
+    description = "OCaml Format pretty-printer combinators";
+    inherit (ocaml.meta) platforms;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+  };
+}