2017-10-05 07:57:03 +02:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, react }:
|
2017-07-02 13:39:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-21 01:24:35 +01:00
|
|
|
version = "1.0.1";
|
|
|
|
name = "ocaml${ocaml.version}-lwt_react-${version}";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz";
|
|
|
|
sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31";
|
|
|
|
};
|
2017-07-02 13:39:53 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2017-07-02 13:39:53 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
propagatedBuildInputs = [ lwt react ];
|
2017-07-02 13:39:53 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
createFindlibDestdir = true;
|
2017-07-02 13:39:53 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
meta = {
|
|
|
|
description = "Helpers for using React with Lwt";
|
|
|
|
inherit (lwt.meta) homepage license maintainers;
|
2018-11-05 11:21:46 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-21 01:24:35 +01:00
|
|
|
};
|
2017-07-02 13:39:53 +02:00
|
|
|
}
|