git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ocaml_lwt: use buildOcaml

This adds the shared objects setup hook to prepare CAML_LD_LIBRARY_PATH.

commit02682e509389a6de23a2614da3b43abebf45a4f2 authorPatrick Mahoney <pat@polycrystal.org> dateSat 22 Apr 2017, 13:33 (10 years ago) parent2f48196
1 file changed+5−3
pkgs/development/ocaml-modules/lwt/default.nix+5−3
pkgs/development/ocaml-modules/lwt/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
1+{ stdenv, buildOcaml, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
22, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
33, ppx_tools, result, cppo
44, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
@@ -15,8 +15,8 @@ let param =
1515 };
1616in
1717
18−stdenv.mkDerivation rec {
19− name = "ocaml-lwt-${version}";
18+buildOcaml rec {
19+ name = "lwt";
2020 inherit (param) version;
2121
2222 src = fetchzip {
@@ -36,6 +36,8 @@ stdenv.mkDerivation rec {
3636
3737 createFindlibDestdir = true;
3838
39+ hasSharedObjects = true;
40+
3941 meta = with stdenv.lib; {
4042 homepage = http://ocsigen.org/lwt;
4143 description = "Lightweight thread library for Objective Caml";