Merge pull request #2361 from vbmithr/ocaml_react

Updated react to 1.0.1
This commit is contained in:
Oliver Charles 2014-04-25 10:25:58 +01:00
commit d6a3bb64d2

View File

@ -1,28 +1,30 @@
{stdenv, fetchurl, ocaml, findlib, ocaml_oasis}: {stdenv, fetchurl, ocaml, findlib, opam}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml-react-0.9.4"; name = "ocaml-react-1.0.1";
src = fetchurl { src = fetchurl {
url = http://github.com/dbuenzli/react/archive/v0.9.4.tar.gz; url = "http://erratique.ch/software/react/releases/react-1.0.1.tbz";
sha256 = "16k0kx93kd45s7pigkzvirfsbr22xhby0y88y86p473qxzc6ngrm"; sha256 = "007c9kzl0i6xvxnqj9jny4hgm28v9a1i079q53vl5hfb5f7h1mda";
}; };
buildInputs = [ocaml findlib ocaml_oasis]; unpackCmd = "tar xjf $src";
buildInputs = [ocaml findlib opam];
createFindlibDestdir = true; createFindlibDestdir = true;
configurePhase = "oasis setup && ocaml setup.ml -configure --prefix $out"; configurePhase = "ocaml pkg/git.ml";
buildPhase = "ocaml setup.ml -build"; buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
installPhase = "ocaml setup.ml -install"; installPhase = ''
opam-installer --script --prefix=$out react.install > install.sh
sh install.sh
'';
meta = { meta = with stdenv.lib; {
homepage = http://erratique.ch/software/react; homepage = http://erratique.ch/software/react;
description = "Applicative events and signals for OCaml"; description = "Applicative events and signals for OCaml";
license = stdenv.lib.licenses.bsd3; license = licenses.bsd3;
platforms = ocaml.meta.platforms; platforms = ocaml.meta.platforms;
maintainers = [ maintainers = with maintainers; [ z77z vbmithr ];
stdenv.lib.maintainers.z77z
];
}; };
} }