about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bisect_ppx/default.nix
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2018-11-30 12:46:14 +0100
committerJoachim Breitner <mail@joachim-breitner.de>2018-11-30 12:57:01 +0100
commit7621523fc19d76a6fe8715a25159557b872fc6af (patch)
tree1a3892c6f41f61c606366500cd1cfe6c0086512d /pkgs/development/ocaml-modules/bisect_ppx/default.nix
parent22e95afea557a5181a73de6577db06f2950fd59c (diff)
Add bisect_ppx and bisect_ppx-ocamlbuild
Diffstat (limited to 'pkgs/development/ocaml-modules/bisect_ppx/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/bisect_ppx/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bisect_ppx/default.nix b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
new file mode 100644
index 0000000000000..7b39cd1968f06
--- /dev/null
+++ b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocaml-migrate-parsetree, ppx_tools_versioned }:
+
+let version = "1.4.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-bisect_ppx-${version}";
+
+  src = fetchFromGitHub {
+    owner = "aantron";
+    repo = "bisect_ppx";
+    rev = version;
+    sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
+  };
+
+  buildInputs = [
+    ocaml
+    dune
+    findlib
+    ocaml-migrate-parsetree
+    ppx_tools_versioned
+  ];
+
+  buildPhase = "dune build -p bisect_ppx";
+
+  inherit (dune) installPhase;
+
+  meta = {
+    homepage = https://github.com/aantron/bisect_ppx;
+    platforms = ocaml.meta.platforms or [];
+    description = "Code coverage for OCaml";
+    license = stdenv.lib.licenses.mpl20;
+  };
+}