@@ -1,9 +1,8 @@
1−{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocaml-migrate-parsetree, ppx_tools_versioned }:
1+{ stdenv, fetchFromGitHub, buildDunePackage, ocaml-migrate-parsetree, ppx_tools_versioned }:
22
3−let version = "1.4.0"; in
4−
5−stdenv.mkDerivation {
6− name = "ocaml${ocaml.version}-bisect_ppx-${version}";
3+buildDunePackage rec {
4+ pname = "bisect_ppx";
5+ version = "1.4.0";
76
87 src = fetchFromGitHub {
98 owner = "aantron";
@@ -13,21 +12,13 @@ stdenv.mkDerivation {
1312 };
1413
1514 buildInputs = [
16− ocaml
17− dune
18− findlib
1915 ocaml-migrate-parsetree
2016 ppx_tools_versioned
2117 ];
2218
23− buildPhase = "dune build -p bisect_ppx";
24−
25− inherit (dune) installPhase;
26−
2719 meta = {
28− homepage = https://github.com/aantron/bisect_ppx;
29− platforms = ocaml.meta.platforms or [];
3020 description = "Code coverage for OCaml";
3121 license = stdenv.lib.licenses.mpl20;
22+ homepage = https://github.com/aantron/bisect_ppx;
3223 };
3324}