2016-10-08 09:44:25 +03:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-05-30 18:35:42 +03:00
|
|
|
name = "ocaml-react-1.2.0";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-30 18:35:42 +03:00
|
|
|
url = http://erratique.ch/software/react/releases/react-1.2.0.tbz;
|
2016-10-04 20:22:55 +03:00
|
|
|
sha256 = "0knhgbngphv5sp1yskfd97crf169qhpc0igr6w7vqw0q36lswyl8";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
};
|
|
|
|
|
2014-04-23 19:00:50 +04:00
|
|
|
unpackCmd = "tar xjf $src";
|
2016-10-08 09:44:25 +03:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam ];
|
2014-01-31 03:10:20 +04:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
|
2014-04-23 19:00:50 +04:00
|
|
|
configurePhase = "ocaml pkg/git.ml";
|
|
|
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
2014-06-07 23:33:04 +04:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
|
|
|
|
in
|
|
|
|
''
|
2014-04-23 19:00:50 +04:00
|
|
|
opam-installer --script --prefix=$out react.install > install.sh
|
2014-06-07 23:33:04 +04:00
|
|
|
sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
|
2014-04-23 19:00:50 +04:00
|
|
|
sh install.sh
|
|
|
|
'';
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
|
2014-04-23 19:00:50 +04:00
|
|
|
meta = with stdenv.lib; {
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
homepage = http://erratique.ch/software/react;
|
|
|
|
description = "Applicative events and signals for OCaml";
|
2014-04-23 19:00:50 +04:00
|
|
|
license = licenses.bsd3;
|
2015-12-24 20:49:07 +03:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-06-07 23:33:04 +04:00
|
|
|
maintainers = with maintainers; [ z77z vbmithr gal_bolle];
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 18:40:04 +03:00
|
|
|
};
|
|
|
|
}
|