about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/pa_ounit
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/pa_ounit')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/pa_ounit/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/pa_ounit/default.nix b/nixpkgs/pkgs/development/ocaml-modules/pa_ounit/default.nix
new file mode 100644
index 000000000000..3bd8baac4b76
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/pa_ounit/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildOcaml, ocaml, fetchurl, ounit }:
+
+if stdenv.lib.versionAtLeast ocaml.version "4.06"
+then throw "pa_ounit is not available for OCaml ${ocaml.version}"
+else
+
+buildOcaml rec {
+  name = "pa_ounit";
+  version = "113.00.00";
+
+  src = fetchurl {
+    url = "https://github.com/janestreet/pa_ounit/archive/${version}.tar.gz";
+    sha256 = "0vi0p2hxcrdsl0319c9s8mh9hmk2i4ir6c6vrj8axkc37zkgc437";
+  };
+
+  propagatedBuildInputs = [ ounit ];
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/janestreet/pa_ounit";
+    description = "OCaml inline testing";
+    license = licenses.asl20;
+    maintainers = [ maintainers.ericbmerritt ];
+  };
+}