2017-07-03 21:10:07 +01:00
|
|
|
{ stdenv, fetchurl, buildOcaml, ocaml, calendar, csv, re }:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4"
|
|
|
|
then throw "pgocaml is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2014-10-10 23:51:29 +01:00
|
|
|
|
2016-10-22 10:05:39 +01:00
|
|
|
buildOcaml {
|
|
|
|
name = "pgocaml";
|
|
|
|
version = "2.3";
|
2014-10-10 23:51:29 +01:00
|
|
|
src = fetchurl {
|
2016-10-22 10:05:39 +01:00
|
|
|
url = https://github.com/darioteixeira/pgocaml/archive/v2.3.tar.gz;
|
|
|
|
sha256 = "18lymxlvcf4nwxawkidq3pilsp5rhl0l8ifq6pjk3ssjlx9w53pg";
|
2014-10-10 23:51:29 +01:00
|
|
|
};
|
|
|
|
|
2016-10-22 10:05:39 +01:00
|
|
|
buildInputs = [ ];
|
|
|
|
propagatedBuildInputs = [ calendar csv re ];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-p4" ];
|
2014-10-10 23:51:29 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An interface to PostgreSQL databases for OCaml applications";
|
|
|
|
homepage = http://pgocaml.forge.ocamlcore.org/;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|