diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-14 07:36:29 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-14 07:36:29 +0000 |
commit | 5e4edcc4ec175d0b4ed8f210de9a2e003e3926cb (patch) | |
tree | 60dadc8764c40750a93ebd1c0b04d8b39251d5eb /pkgs/development/ocaml-modules/ptime | |
parent | 9b6ef35b2c848702582a1a7574ab12e70cd4749a (diff) |
ocamlPackages.topkg: refactoring
Diffstat (limited to 'pkgs/development/ocaml-modules/ptime')
-rw-r--r-- | pkgs/development/ocaml-modules/ptime/default.nix | 8 |
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; |