2019-09-28 20:39:31 +02:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
2019-08-03 16:05:30 +02:00
|
|
|
, calendar, csv, hex, re
|
|
|
|
}:
|
2017-07-03 22:10:07 +02:00
|
|
|
|
2019-09-28 20:39:31 +02:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pgocaml";
|
|
|
|
version = "4.0";
|
2019-08-03 16:05:30 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darioteixeira";
|
|
|
|
repo = "pgocaml";
|
|
|
|
rev = "v${version}";
|
2019-09-28 20:39:31 +02:00
|
|
|
sha256 = "1s8c5prr7jb9k76bz990m836czm6k8rv5bvp6s2zg9ra0w19w90j";
|
2014-10-11 00:51:29 +02:00
|
|
|
};
|
|
|
|
|
2019-09-28 20:39:31 +02:00
|
|
|
minimumOCamlVersion = "4.05";
|
2016-10-22 11:05:39 +02:00
|
|
|
|
2019-09-28 20:39:31 +02:00
|
|
|
preConfigure = "patchShebangs src/genconfig.sh";
|
2014-10-11 00:51:29 +02:00
|
|
|
|
2019-09-28 20:39:31 +02:00
|
|
|
propagatedBuildInputs = [ calendar csv hex re ];
|
2014-10-11 00:51:29 +02:00
|
|
|
|
2019-09-28 20:39:31 +02:00
|
|
|
meta = with lib; {
|
2014-10-11 00:51:29 +02:00
|
|
|
description = "An interface to PostgreSQL databases for OCaml applications";
|
2019-09-28 20:39:31 +02:00
|
|
|
inherit (src.meta) homepage;
|
2014-10-11 00:51:29 +02:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|