2014-04-23 17:00:50 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, 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 16:40:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-06-07 21:33:04 +02:00
|
|
|
name = "ocaml-react-1.1.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 16:40:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-06-07 21:33:04 +02:00
|
|
|
url = http://erratique.ch/software/react/releases/react-1.1.0.tbz;
|
|
|
|
sha256 = "1gymn8hy7ga0l9qymmb1jcnnkqvy7l2zr87xavzqz0dfi9ci8dm7";
|
* 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 16:40:04 +01:00
|
|
|
};
|
|
|
|
|
2014-04-23 17:00:50 +02:00
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
buildInputs = [ocaml findlib opam];
|
2014-01-31 00:10:20 +01: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 16:40:04 +01:00
|
|
|
|
2014-04-23 17:00:50 +02:00
|
|
|
configurePhase = "ocaml pkg/git.ml";
|
|
|
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
2014-06-07 21:33:04 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
|
|
|
|
in
|
|
|
|
''
|
2014-04-23 17:00:50 +02:00
|
|
|
opam-installer --script --prefix=$out react.install > install.sh
|
2014-06-07 21:33:04 +02:00
|
|
|
sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
|
2014-04-23 17:00:50 +02: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 16:40:04 +01:00
|
|
|
|
2014-04-23 17:00:50 +02: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 16:40:04 +01:00
|
|
|
homepage = http://erratique.ch/software/react;
|
|
|
|
description = "Applicative events and signals for OCaml";
|
2014-04-23 17:00:50 +02:00
|
|
|
license = licenses.bsd3;
|
* Enable hydra build for ocaml-batteries, camlzip, camomile, ocaml-cryptgps, cryptokit, ocaml-lwt, menhir, ounit, ocaml-pcre, ocaml-react, ocaml-ssl
svn path=/nixpkgs/trunk/; revision=25064
2010-12-11 15:50:45 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
2014-06-07 21:33:04 +02: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 16:40:04 +01:00
|
|
|
};
|
|
|
|
}
|