summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pgocaml/default.nix
blob: f1bc4849a7f547a9d840cfe00229bfd0a2fdbdb7 (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.2";
  src = fetchurl {
    url = http://forge.ocamlcore.org/frs/download.php/1506/pgocaml-2.2.tgz;
    sha256 = "0x0dhlz2rqxpwfdqi384f9fn0ng2irifadmxfm2b4gcz7y1cl9rh";
  };

  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 or [];
    maintainers = with maintainers; [ vbgl ];
  };
}