git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4467 from vbgl/ocaml

Adds three OCaml libraries: reactiveData, PG’OCaml and MaCaQue

commit18bf16843a43860b6b8c7d01ad295543f9f69fce authorAristid Breitkreuz <aristidb@gmail.com> dateSat 11 Oct 2014, 12:58 (12 years ago) parent65094018320bba
4 files changed+83
pkgs/development/ocaml-modules/macaque/default.nix+22 pkgs/development/ocaml-modules/pgocaml/default.nix+22 pkgs/development/ocaml-modules/reactivedata/default.nix+34 pkgs/top-level/all-packages.nix+5
pkgs/development/ocaml-modules/macaque/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{stdenv, fetchurl, ocaml, findlib, pgocaml, camlp4}:
2+
3+stdenv.mkDerivation {
4+ name = "ocaml-macaque-0.7.1";
5+ src = fetchurl {
6+ url = https://github.com/ocsigen/macaque/archive/0.7.1.tar.gz;
7+ sha256 = "0wnq3pgpcrfpivr8j7p827rhag6hdx0yr0bdvma0hw1g30vwf9qa";
8+ };
9+
10+ buildInputs = [ ocaml findlib camlp4 ];
11+ propagatedBuildInputs = [ pgocaml ];
12+
13+ createFindlibDestdir = true;
14+
15+ meta = with stdenv.lib; {
16+ description = "Macros for Caml Queries";
17+ homepage = https://github.com/ocsigen/macaque;
18+ license = licenses.lgpl2;
19+ platforms = ocaml.meta.platforms;
20+ maintainers = with maintainers; [ vbgl ];
21+ };
22+}
pkgs/development/ocaml-modules/pgocaml/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{stdenv, fetchurl, ocaml, findlib, camlp4, calendar, csv, ocaml_pcre}:
2+
3+stdenv.mkDerivation {
4+ name = "ocaml-pgocaml-2.1";
5+ src = fetchurl {
6+ url = http://forge.ocamlcore.org/frs/download.php/1413/pgocaml-2.1.tgz;
7+ sha256 = "0m7whlmhm7z58pfaarvkyiwaylmrz05aj6fr773zd9xlv07ljiym";
8+ };
9+
10+ buildInputs = [ocaml findlib camlp4];
11+ propagatedBuildInputs = [calendar csv ocaml_pcre];
12+
13+ createFindlibDestdir = true;
14+
15+ meta = with stdenv.lib; {
16+ description = "An interface to PostgreSQL databases for OCaml applications";
17+ homepage = http://pgocaml.forge.ocamlcore.org/;
18+ license = licenses.lgpl2;
19+ platforms = ocaml.meta.platforms;
20+ maintainers = with maintainers; [ vbgl ];
21+ };
22+}
pkgs/development/ocaml-modules/reactivedata/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{stdenv, fetchurl, ocaml, findlib, ocaml_react, opam}:
2+
3+let
4+ ocamlVersion = stdenv.lib.getVersion ocaml;
5+in
6+
7+assert stdenv.lib.versionAtLeast ocamlVersion "3.11";
8+
9+stdenv.mkDerivation {
10+ name = "ocaml-reactiveData-0.1";
11+ src = fetchurl {
12+ url = https://github.com/hhugo/reactiveData/archive/0.1.tar.gz;
13+ sha256 = "056y9in6j6rpggdf8apailvs1m30wxizpyyrj08xyfxgv91mhxgw";
14+ };
15+
16+ buildInputs = [ocaml findlib opam];
17+ propagatedBuildInputs = [ocaml_react];
18+
19+ buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
20+
21+ installPhase = ''
22+ opam-installer --script --prefix=$out reactiveData.install > install.sh
23+ sed -i s!lib/reactiveData!lib/ocaml/${ocamlVersion}/site-lib/reactiveData! install.sh
24+ sh install.sh
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ description = "An OCaml module for functional reactive programming (FRP) based on React";
29+ homepage = https://github.com/hhugo/reactiveData;
30+ license = licenses.lgpl21;
31+ platforms = ocaml.meta.platforms;
32+ maintainers = with maintainers; [ vbgl ];
33+ };
34+}
pkgs/top-level/all-packages.nix+5
@@ -3493,6 +3493,8 @@ let
34933493
34943494 lambdaTerm = callPackage ../development/ocaml-modules/lambda-term { };
34953495
3496+ macaque = callPackage ../development/ocaml-modules/macaque { };
3497+
34963498 menhir = callPackage ../development/ocaml-modules/menhir { };
34973499
34983500 merlin = callPackage ../development/tools/ocaml/merlin { };
@@ -3535,7 +3537,10 @@ let
35353537 inherit pcre;
35363538 };
35373539
3540+ pgocaml = callPackage ../development/ocaml-modules/pgocaml {};
3541+
35383542 ocaml_react = callPackage ../development/ocaml-modules/react { };
3543+ reactivedata = callPackage ../development/ocaml-modules/reactivedata {};
35393544
35403545 ocamlsdl= callPackage ../development/ocaml-modules/ocamlsdl { };
35413546