1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/react/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

2014-04-23 16:00:50 +01:00
{stdenv, fetchurl, ocaml, findlib, opam}:
stdenv.mkDerivation {
2016-05-30 16:35:42 +01:00
name = "ocaml-react-1.2.0";
src = fetchurl {
2016-05-30 16:35:42 +01:00
url = http://erratique.ch/software/react/releases/react-1.2.0.tbz;
2014-06-07 20:33:04 +01:00
sha256 = "1gymn8hy7ga0l9qymmb1jcnnkqvy7l2zr87xavzqz0dfi9ci8dm7";
};
2014-04-23 16:00:50 +01:00
unpackCmd = "tar xjf $src";
buildInputs = [ocaml findlib opam];
2014-01-30 23:10:20 +00:00
createFindlibDestdir = true;
2014-04-23 16:00:50 +01:00
configurePhase = "ocaml pkg/git.ml";
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
2014-06-07 20:33:04 +01:00
installPhase =
let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
in
''
2014-04-23 16:00:50 +01:00
opam-installer --script --prefix=$out react.install > install.sh
2014-06-07 20:33:04 +01:00
sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
2014-04-23 16:00:50 +01:00
sh install.sh
'';
2014-04-23 16:00:50 +01:00
meta = with stdenv.lib; {
homepage = http://erratique.ch/software/react;
description = "Applicative events and signals for OCaml";
2014-04-23 16:00:50 +01:00
license = licenses.bsd3;
platforms = ocaml.meta.platforms or [];
2014-06-07 20:33:04 +01:00
maintainers = with maintainers; [ z77z vbmithr gal_bolle];
};
}