git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.lwt_react: init at 1.0.1
commitca15a36d0ec2b8a3597efd5bc1a1694f9aa2ce7d authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 2 Jul 2017, 11:39 (9 years ago) parentd3a29b3
2 files changed+25
pkgs/development/ocaml-modules/lwt_react/default.nix+21 pkgs/top-level/ocaml-packages.nix+4
pkgs/development/ocaml-modules/lwt_react/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, ocaml_react }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.0.1";
5+ name = "ocaml${ocaml.version}-lwt_react-${version}";
6+ src = fetchzip {
7+ url = https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz;
8+ sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31";
9+ };
10+
11+ buildInputs = [ ocaml findlib ocamlbuild ];
12+
13+ propagatedBuildInputs = [ lwt ocaml_react ];
14+
15+ createFindlibDestdir = true;
16+
17+ meta = {
18+ description = "Helpers for using React with Lwt";
19+ inherit (lwt.meta) homepage license maintainers platforms;
20+ };
21+}
pkgs/top-level/ocaml-packages.nix+4
@@ -308,6 +308,10 @@ let
308308 }
309309 else throw "lwt3 is not available for OCaml ${ocaml.version}";
310310
311+ lwt_react = callPackage ../development/ocaml-modules/lwt_react {
312+ lwt = lwt3;
313+ };
314+
311315 macaque = callPackage ../development/ocaml-modules/macaque { };
312316
313317 magic-mime = callPackage ../development/ocaml-modules/magic-mime { };