about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix b/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
new file mode 100644
index 0000000000000..e4d5c22c187f9
--- /dev/null
+++ b/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocamlbuild }:
+
+let version = "1.4.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-bisect_ppx-ocamlbuild-${version}";
+
+  src = fetchFromGitHub {
+    owner = "aantron";
+    repo = "bisect_ppx";
+    rev = version;
+    sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
+  };
+
+  buildInputs = [
+    ocaml
+    dune
+    findlib
+    ocamlbuild
+  ];
+
+  buildPhase = "dune build -p bisect_ppx-ocamlbuild";
+
+  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;
+  };
+}