about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/qtest
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-03-21 09:52:59 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-03-21 10:04:14 +0100
commit4c8681fea1df607ded96b75a920f2c35b36f7a3b (patch)
tree706c829a4a886eae9fc26cf04a18073fd2a7ecd2 /pkgs/development/ocaml-modules/qtest
parenta246b849eba9f54e695483de1476798316580bfc (diff)
downloadnixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar.gz
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar.bz2
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar.lz
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar.xz
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.tar.zst
nixlib-4c8681fea1df607ded96b75a920f2c35b36f7a3b.zip
Adds ocaml-qtest-2.0.1
Inline test extraction utility for OCaml, originally developed
internally for Batteries

Homepage: https://github.com/vincent-hugot/iTeML
Diffstat (limited to 'pkgs/development/ocaml-modules/qtest')
-rw-r--r--pkgs/development/ocaml-modules/qtest/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix
new file mode 100644
index 000000000000..e68a8729c014
--- /dev/null
+++ b/pkgs/development/ocaml-modules/qtest/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchzip, ocaml, oasis, findlib, ounit }:
+
+let version = "2.0.1"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-qtest-${version}";
+  src = fetchzip {
+    url = "https://github.com/vincent-hugot/iTeML/archive/v${version}.tar.gz";
+    sha256 = "00sir7q7z78s22w8fzrgw9gqm7r8ww0bgwqxrq6nsbbclgxj9c6i";
+  };
+
+  buildInputs = [ ocaml oasis findlib ];
+  propagatedBuildInputs = [ ounit ];
+
+  buildPhase = "ocaml do.ml qtest build $out";
+  createFindlibDestdir = true;
+  installPhase = "ocaml do.ml qtest install $out";
+
+  meta = {
+    description = "Inline (Unit) Tests for OCaml (formerly “qtest”)";
+    homepage = https://github.com/vincent-hugot/iTeML;
+    platforms = ocaml.meta.platforms;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}