summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/logs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-12-14 07:36:29 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-12-14 07:36:29 +0000
commit5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb (patch)
tree60dadc8764c40750a93ebd1c0b04d8b39251d5eb /pkgs/development/ocaml-modules/logs
parent9b6ef35b2c848702582a1a7574ab12e70cd4749a (diff)
downloadnixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar.gz
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar.bz2
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar.lz
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar.xz
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.tar.zst
nixpkgs-5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb.zip
ocamlPackages.topkg: refactoring
Diffstat (limited to 'pkgs/development/ocaml-modules/logs')
-rw-r--r--pkgs/development/ocaml-modules/logs/default.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix
index ab0b6c8579b..aead4b4756f 100644
--- a/pkgs/development/ocaml-modules/logs/default.nix
+++ b/pkgs/development/ocaml-modules/logs/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
 , topkg, result, lwt, cmdliner, fmt }:
 let
   pname = "logs";
@@ -18,18 +18,13 @@ stdenv.mkDerivation rec {
 
   unpackCmd = "tar xjf $src";
 
-  buildInputs = [ ocaml findlib ocamlbuild opam topkg fmt cmdliner lwt ];
+  buildInputs = [ ocaml findlib ocamlbuild topkg fmt cmdliner lwt ];
   propagatedBuildInputs = [ result ];
 
-  buildPhase = ''
-    ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build \
-      --with-js_of_ocaml false
-    '';
+  buildPhase = "${topkg.run} build --with-js_of_ocaml false";
 
   inherit (topkg) installPhase;
 
-  createFindlibDestdir = true;
-
   meta = with stdenv.lib; {
     description = "Logging infrastructure for OCaml";
     homepage = "${webpage}";