mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
ocamlPackages.ocaml_lwt: use buildOcaml
This adds the shared objects setup hook to prepare CAML_LD_LIBRARY_PATH.
This commit is contained in:
parent
2f481960cf
commit
02682e5093
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
|
{ stdenv, buildOcaml, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
|
||||||
, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
|
, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
|
||||||
, ppx_tools, result, cppo
|
, ppx_tools, result, cppo
|
||||||
, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
|
, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
@ -15,8 +15,8 @@ let param =
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildOcaml rec {
|
||||||
name = "ocaml-lwt-${version}";
|
name = "lwt";
|
||||||
inherit (param) version;
|
inherit (param) version;
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
@ -36,6 +36,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
hasSharedObjects = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://ocsigen.org/lwt;
|
homepage = http://ocsigen.org/lwt;
|
||||||
description = "Lightweight thread library for Objective Caml";
|
description = "Lightweight thread library for Objective Caml";
|
||||||
|
Loading…
Reference in New Issue
Block a user