summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pgocaml/default.nix
blob: f1166d1c324907a22e2cff380be9e46ea8c3474a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{stdenv, fetchurl, ocaml, findlib, camlp4, calendar, csv, ocaml_pcre}:

stdenv.mkDerivation {
  name = "ocaml-pgocaml-2.1";
  src = fetchurl {
    url = http://forge.ocamlcore.org/frs/download.php/1413/pgocaml-2.1.tgz;
    sha256 = "0m7whlmhm7z58pfaarvkyiwaylmrz05aj6fr773zd9xlv07ljiym";
  };

  buildInputs = [ocaml findlib camlp4];
  propagatedBuildInputs = [calendar csv ocaml_pcre];

  createFindlibDestdir = true;

  meta = with stdenv.lib; {
    description = "An interface to PostgreSQL databases for OCaml applications";
    homepage = http://pgocaml.forge.ocamlcore.org/;
    license = licenses.lgpl2;
    platforms = ocaml.meta.platforms;
    maintainers = with maintainers; [ vbgl ];
  };
}