nixpkgs/pkgs/development/ocaml-modules/react/default.nix

31 lines
861 B
Nix
Raw Normal View History

2014-04-23 17:00:50 +02:00
{stdenv, fetchurl, ocaml, findlib, opam}:
stdenv.mkDerivation {
2014-04-23 17:00:50 +02:00
name = "ocaml-react-1.0.1";
src = fetchurl {
2014-04-23 17:00:50 +02:00
url = "http://erratique.ch/software/react/releases/react-1.0.1.tbz";
sha256 = "007c9kzl0i6xvxnqj9jny4hgm28v9a1i079q53vl5hfb5f7h1mda";
};
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;
2014-04-23 17:00:50 +02:00
configurePhase = "ocaml pkg/git.ml";
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
installPhase = ''
opam-installer --script --prefix=$out react.install > install.sh
sh install.sh
'';
2014-04-23 17:00:50 +02:00
meta = with stdenv.lib; {
homepage = http://erratique.ch/software/react;
description = "Applicative events and signals for OCaml";
2014-04-23 17:00:50 +02:00
license = licenses.bsd3;
platforms = ocaml.meta.platforms;
2014-04-23 17:00:50 +02:00
maintainers = with maintainers; [ z77z vbmithr ];
};
}