Skip to content

Commit

Permalink
ocamlPackages.react: 1.2.0 -> 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Oct 5, 2017
1 parent 184f80a commit c06e5a8
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 36 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/eliom/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml,
js_of_ocaml, ocaml_react, lwt, calendar, cryptokit, tyxml,
js_of_ocaml, react, lwt, calendar, cryptokit, tyxml,
ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
reactivedata, opam, ppx_tools, ppx_deriving, findlib
, ocamlbuild
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation rec

propagatedBuildInputs = [ lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
ocsigen_deriving js_of_ocaml
calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ];
calendar cryptokit ocamlnet react ocaml_ssl ocaml_pcre ];

installPhase = "opam-installer -i --prefix=$out --libdir=$OCAMLFIND_DESTDIR";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/lambda-term/1.6.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libev, ocaml, findlib, ocamlbuild, lwt, ocaml_react, zed, camlp4 }:
{ stdenv, fetchurl, libev, ocaml, findlib, ocamlbuild, lwt, react, zed, camlp4 }:

stdenv.mkDerivation rec {
version = "1.6";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1rhfixdgpylxznf6sa9wr31wb4pjzpfn5mxhxqpbchmpl2afwa09";
};

buildInputs = [ libev ocaml findlib ocamlbuild lwt ocaml_react ];
buildInputs = [ libev ocaml findlib ocamlbuild lwt react ];

propagatedBuildInputs = [ camlp4 zed ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/lwt/default.nix
@@ -1,5 +1,5 @@
{ stdenv, buildOcaml, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
, react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
, ppx_tools, result, cppo
, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
, version ? if stdenv.lib.versionAtLeast ocaml.version "4.02" then "2.7.1" else "2.6.0"
Expand Down Expand Up @@ -30,7 +30,7 @@ buildOcaml rec {
++ stdenv.lib.optional ppxSupport ppx_tools;

propagatedBuildInputs = [ result ]
++ optionals [ ocaml_react ocaml_ssl ]
++ optionals [ react ocaml_ssl ]
++ [ libev ];

configureScript = "ocaml setup.ml -configure";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/lwt_react/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, ocaml_react }:
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, react }:

stdenv.mkDerivation rec {
version = "1.0.1";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {

buildInputs = [ ocaml findlib ocamlbuild ];

propagatedBuildInputs = [ lwt ocaml_react ];
propagatedBuildInputs = [ lwt react ];

createFindlibDestdir = true;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/ocsigen-server/default.nix
@@ -1,4 +1,4 @@
{stdenv, fetchurl, ocaml, findlib, which, ocaml_react, ocaml_ssl,
{stdenv, fetchurl, ocaml, findlib, which, react, ocaml_ssl,
lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ipaddr, zlib,
libev, openssl, ocaml_sqlite3, tree, uutf, makeWrapper, camlp4
, camlzip, pgocaml
Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation {
sha256 = "1v44qv2ixd7i1qinyhlzzqiffawsdl7xhhh6ysd7lf93kh46d5sy";
};

buildInputs = [ocaml which findlib ocaml_react ocaml_ssl lwt
buildInputs = [ocaml which findlib react ocaml_ssl lwt
ocamlnet ocaml_pcre cryptokit tyxml ipaddr zlib libev openssl
ocaml_sqlite3 tree uutf makeWrapper camlp4 pgocaml camlzip ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/ojquery/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchgit, ocaml, findlib, ocamlbuild, js_of_ocaml, js_of_ocaml-camlp4, camlp4, lwt3, ocaml_react }:
{ stdenv, fetchgit, ocaml, findlib, ocamlbuild, js_of_ocaml, js_of_ocaml-camlp4, camlp4, lwt3, react }:

stdenv.mkDerivation rec {
version = "0.1";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};

buildInputs = [ ocaml findlib ocamlbuild js_of_ocaml-camlp4 camlp4 ];
propagatedBuildInputs = [ js_of_ocaml lwt3 ocaml_react ];
propagatedBuildInputs = [ js_of_ocaml lwt3 react ];

createFindlibDestdir = true;

Expand Down
22 changes: 6 additions & 16 deletions pkgs/development/ocaml-modules/react/default.nix
@@ -1,29 +1,19 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
{ stdenv, fetchurl, ocaml, findlib, topkg, ocamlbuild, opam }:

stdenv.mkDerivation {
name = "ocaml-react-1.2.0";
name = "ocaml-react-1.2.1";

src = fetchurl {
url = http://erratique.ch/software/react/releases/react-1.2.0.tbz;
sha256 = "0knhgbngphv5sp1yskfd97crf169qhpc0igr6w7vqw0q36lswyl8";
url = http://erratique.ch/software/react/releases/react-1.2.1.tbz;
sha256 = "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v";
};

unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib ocamlbuild opam ];
buildInputs = [ ocaml findlib topkg ocamlbuild opam ];

createFindlibDestdir = true;

configurePhase = "ocaml pkg/git.ml";
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";

installPhase =
let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
in
''
opam-installer --script --prefix=$out react.install > install.sh
sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
sh install.sh
'';
inherit (topkg) buildPhase installPhase;

meta = with stdenv.lib; {
homepage = http://erratique.ch/software/react;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/reactivedata/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocaml_react, opam }:
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opam }:

assert stdenv.lib.versionAtLeast ocaml.version "3.11";

Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation {
};

buildInputs = [ ocaml findlib ocamlbuild opam ];
propagatedBuildInputs = [ocaml_react];
propagatedBuildInputs = [ react ];

buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/zed/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, ocaml_react }:
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, react }:

stdenv.mkDerivation rec {
version = "1.4";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "0d8qfy0qiydrrqi8qc9rcwgjigql6vx9gl4zp62jfz1lmjgb2a3w";
};

buildInputs = [ ocaml findlib ocamlbuild ocaml_react ];
buildInputs = [ ocaml findlib ocamlbuild react ];

propagatedBuildInputs = [ camomile ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/ocaml/utop/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, bash, ocaml, findlib, ocamlbuild, camlp4, ocaml_react
{ stdenv, fetchurl, bash, ocaml, findlib, ocamlbuild, camlp4
, lambdaTerm, ocaml_lwt, camomile, zed, cppo, ppx_tools, makeWrapper
}:

Expand Down
7 changes: 4 additions & 3 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -433,9 +433,6 @@ let

pgocaml = callPackage ../development/ocaml-modules/pgocaml {};

ocaml_react = callPackage ../development/ocaml-modules/react { };
reactivedata = callPackage ../development/ocaml-modules/reactivedata {};

ocamlscript = callPackage ../development/tools/ocaml/ocamlscript { };

ocamlsdl= callPackage ../development/ocaml-modules/ocamlsdl { };
Expand Down Expand Up @@ -593,6 +590,10 @@ let

re = callPackage ../development/ocaml-modules/re { };

react = callPackage ../development/ocaml-modules/react { };

reactivedata = callPackage ../development/ocaml-modules/reactivedata {};

reason = callPackage ../development/compilers/reason { };

rope = callPackage ../development/ocaml-modules/rope { };
Expand Down

0 comments on commit c06e5a8

Please sign in to comment.