aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/react
diff options
context:
space:
mode:
authorMarco Maggesi <maggesi@math.unifi.it>2010-12-09 15:40:04 +0000
committerMarco Maggesi <maggesi@math.unifi.it>2010-12-09 15:40:04 +0000
commitac457478e35e56e7370e3e40167e5df75de98363 (patch)
treefcbfe2bb58b8e32bbb60c0c4e25e069139e73ceb /pkgs/development/ocaml-modules/react
parent114fa21c481f0c9b52f4e7a2915bffbdfb61467e (diff)
* 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
Diffstat (limited to 'pkgs/development/ocaml-modules/react')
-rw-r--r--pkgs/development/ocaml-modules/react/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/react/default.nix b/pkgs/development/ocaml-modules/react/default.nix
new file mode 100644
index 000000000000..b1757d84b7b6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/react/default.nix
@@ -0,0 +1,33 @@
+{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";
+ };
+}