Update OCaml react to version 2.4.3
This commit is contained in:
parent
f3a49abf08
commit
e1df6c2162
@ -1,34 +1,25 @@
|
|||||||
{stdenv, fetchurl, ocaml}:
|
{stdenv, fetchurl, ocaml, findlib, ocaml_oasis}:
|
||||||
|
|
||||||
let
|
|
||||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
||||||
version = "0.9.2";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml-react-${version}";
|
name = "ocaml-react-0.9.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://erratique.ch/software/react/releases/react-${version}.tbz";
|
url = http://github.com/dbuenzli/react/archive/v0.9.4.tar.gz;
|
||||||
sha256 = "0fiaxzfxv8pc82d31jz85zryz06k84is0l3sn5g0di5mpc5falxr";
|
sha256 = "16k0kx93kd45s7pigkzvirfsbr22xhby0y88y86p473qxzc6ngrm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ocaml];
|
buildInputs = [ocaml findlib ocaml_oasis];
|
||||||
|
|
||||||
buildCommand = ''
|
createFindlibDestdir = true;
|
||||||
export INSTALLDIR=$out/lib/ocaml/${ocaml_version}/site-lib/react
|
|
||||||
tar xjf $src
|
configurePhase = "oasis setup && ocaml setup.ml -configure --prefix $out";
|
||||||
cd react-*
|
buildPhase = "ocaml setup.ml -build";
|
||||||
substituteInPlace src/META --replace '+react' $INSTALLDIR
|
installPhase = "ocaml setup.ml -install";
|
||||||
chmod +x build
|
|
||||||
./build
|
|
||||||
./build install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
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 = "BSD";
|
license = stdenv.lib.licenses.bsd3;
|
||||||
platforms = ocaml.meta.platforms;
|
platforms = ocaml.meta.platforms;
|
||||||
maintainers = [
|
maintainers = [
|
||||||
stdenv.lib.maintainers.z77z
|
stdenv.lib.maintainers.z77z
|
||||||
|
Loading…
Reference in New Issue
Block a user