about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bisect_ppx
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2018-12-01 17:45:37 +0100
committerJoachim Breitner <mail@joachim-breitner.de>2018-12-01 17:46:29 +0100
commit54ed86852e921948cbd35bc7e228ebfca38c4d47 (patch)
tree5dae3ad0b8031c649a2d3ed7c885a7954df528f2 /pkgs/development/ocaml-modules/bisect_ppx
parent7621523fc19d76a6fe8715a25159557b872fc6af (diff)
Switch to buildDunePackage, and remove redundancies
Diffstat (limited to 'pkgs/development/ocaml-modules/bisect_ppx')
-rw-r--r--pkgs/development/ocaml-modules/bisect_ppx/default.nix19
1 files changed, 5 insertions, 14 deletions
diff --git a/pkgs/development/ocaml-modules/bisect_ppx/default.nix b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
index 7b39cd1968f06..9999cd06fcae0 100644
--- a/pkgs/development/ocaml-modules/bisect_ppx/default.nix
+++ b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
@@ -1,9 +1,8 @@
-{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocaml-migrate-parsetree, ppx_tools_versioned }:
+{ stdenv, fetchFromGitHub, buildDunePackage, ocaml-migrate-parsetree, ppx_tools_versioned }:
 
-let version = "1.4.0"; in
-
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-bisect_ppx-${version}";
+buildDunePackage rec {
+  pname = "bisect_ppx";
+  version = "1.4.0";
 
   src = fetchFromGitHub {
     owner = "aantron";
@@ -13,21 +12,13 @@ stdenv.mkDerivation {
   };
 
   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;
+    homepage = https://github.com/aantron/bisect_ppx;
   };
 }