diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-10-10 23:33:22 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-10-11 00:49:34 +0100 |
commit | cdf3dc27935e65196a0e17a7b3aaae6e443eaa09 (patch) | |
tree | e5c84d99e24bf366c77473661001393627e42db0 /pkgs/development/ocaml-modules | |
parent | 26dd5dd6a41b9dbbc726de71764b749cddaabfc9 (diff) | |
download | nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar.gz nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar.bz2 nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar.lz nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar.xz nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.tar.zst nixlib-cdf3dc27935e65196a0e17a7b3aaae6e443eaa09.zip |
ocaml-reactivedata: new package
reactiveData is an OCaml module for functional reactive programming (FRP) based on React. Homepage: https://github.com/hhugo/reactiveData
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/reactivedata/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/reactivedata/default.nix b/pkgs/development/ocaml-modules/reactivedata/default.nix new file mode 100644 index 000000000000..eecae885302f --- /dev/null +++ b/pkgs/development/ocaml-modules/reactivedata/default.nix @@ -0,0 +1,34 @@ +{stdenv, fetchurl, ocaml, findlib, ocaml_react, opam}: + +let + ocamlVersion = stdenv.lib.getVersion ocaml; +in + +assert stdenv.lib.versionAtLeast ocamlVersion "3.11"; + +stdenv.mkDerivation { + name = "ocaml-reactiveData-0.1"; + src = fetchurl { + url = https://github.com/hhugo/reactiveData/archive/0.1.tar.gz; + sha256 = "056y9in6j6rpggdf8apailvs1m30wxizpyyrj08xyfxgv91mhxgw"; + }; + + buildInputs = [ocaml findlib opam]; + propagatedBuildInputs = [ocaml_react]; + + buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true"; + + installPhase = '' + opam-installer --script --prefix=$out reactiveData.install > install.sh + sed -i s!lib/reactiveData!lib/ocaml/${ocamlVersion}/site-lib/reactiveData! install.sh + sh install.sh + ''; + + meta = with stdenv.lib; { + description = "An OCaml module for functional reactive programming (FRP) based on React"; + homepage = https://github.com/hhugo/reactiveData; + license = licenses.lgpl21; + platforms = ocaml.meta.platforms; + maintainers = with maintainers; [ vbgl ]; + }; +} |