summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/ocp-index
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-18 04:22:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-12-18 04:22:00 -0500
commitd07842589d3f8fdfbc8e6170a4673bcbc6bffa6e (patch)
tree0226156cdb093c93f414533ced085831e7221c25 /pkgs/development/tools/ocaml/ocp-index
parent90b15631714f45dd4b7f9fa192e3bcdd8d07af5a (diff)
downloadnixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar.gz
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar.bz2
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar.lz
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar.xz
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.tar.zst
nixpkgs-d07842589d3f8fdfbc8e6170a4673bcbc6bffa6e.zip
ocamlPackages.ocp-index: use buildDunePackage
Diffstat (limited to 'pkgs/development/tools/ocaml/ocp-index')
-rw-r--r--pkgs/development/tools/ocaml/ocp-index/default.nix17
1 files changed, 6 insertions, 11 deletions
diff --git a/pkgs/development/tools/ocaml/ocp-index/default.nix b/pkgs/development/tools/ocaml/ocp-index/default.nix
index 79be6a8170c..9ea01a8dca7 100644
--- a/pkgs/development/tools/ocaml/ocp-index/default.nix
+++ b/pkgs/development/tools/ocaml/ocp-index/default.nix
@@ -1,29 +1,24 @@
-{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
-
-stdenv.mkDerivation rec {
+{ stdenv, fetchFromGitHub, buildDunePackage, ocp-build, ocp-indent, cmdliner, re,  }:
 
+buildDunePackage rec {
+  pname = "ocp-index";
   version = "1.1.9";
-  name = "ocaml${ocaml.version}-ocp-index-${version}";
 
   src = fetchFromGitHub {
     owner = "OCamlPro";
-    repo = "ocp-index";
+    repo = pname;
     rev = version;
     sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
   };
 
-  buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
-  propagatedBuildInputs = [ ocp-indent ];
-
-  buildPhase = "dune build -p ocp-index";
+  buildInputs = [ ocp-build cmdliner re ];
 
-  inherit (dune) installPhase;
+  propagatedBuildInputs = [ ocp-indent ];
 
   meta = {
     homepage = http://typerex.ocamlpro.com/ocp-index.html;
     description = "A simple and light-weight documentation extractor for OCaml";
     license = stdenv.lib.licenses.lgpl3;
-    platforms = ocaml.meta.platforms or [];
     maintainers = with stdenv.lib.maintainers; [ vbgl ];
   };
 }