about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ptime
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/ptime
parent9b6ef35b2c848702582a1a7574ab12e70cd4749a (diff)
ocamlPackages.topkg: refactoring
Diffstat (limited to 'pkgs/development/ocaml-modules/ptime')
-rw-r--r--pkgs/development/ocaml-modules/ptime/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/ptime/default.nix b/pkgs/development/ocaml-modules/ptime/default.nix
index bb4bbef516c85..2e3a627a3d1cb 100644
--- a/pkgs/development/ocaml-modules/ptime/default.nix
+++ b/pkgs/development/ocaml-modules/ptime/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg, result, opam, js_of_ocaml }:
+{ stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg, result, js_of_ocaml }:
 
 buildOcaml rec {
   version = "0.8.3";
@@ -11,13 +11,11 @@ buildOcaml rec {
 
   unpackCmd = "tar -xf $curSrc";
 
-  buildInputs = [ ocaml findlib ocamlbuild topkg opam js_of_ocaml ];
+  buildInputs = [ ocaml findlib ocamlbuild topkg js_of_ocaml ];
 
   propagatedBuildInputs = [ result ];
 
-  buildPhase = ''
-    ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build --with-js_of_ocaml true
-  '';
+  buildPhase = "${topkg.run} build --with-js_of_ocaml true";
 
   inherit (topkg) installPhase;