* 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, fetchurl, ocaml}:
|
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
version = "0.9.2";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-react-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/react/releases/react-${version}.tbz";
|
|
|
|
sha256 = "0fiaxzfxv8pc82d31jz85zryz06k84is0l3sn5g0di5mpc5falxr";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
export INSTALLDIR=$out/lib/ocaml/${ocaml_version}/site-lib/react
|
|
|
|
tar xjf $src
|
|
|
|
cd react-*
|
|
|
|
substituteInPlace src/META --replace '+react' $INSTALLDIR
|
|
|
|
chmod +x build
|
|
|
|
./build
|
|
|
|
./build install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://erratique.ch/software/react;
|
|
|
|
description = "Applicative events and signals for OCaml";
|
|
|
|
license = "BSD";
|
* 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;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
* 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
|
|
|
};
|
|
|
|
}
|