2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }:
|
2014-08-21 14:24:43 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";
|
2014-09-21 11:02:55 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 17:02:42 +01:00
|
|
|
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2014-08-21 14:24:43 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-sqlite3EZ-0.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz";
|
2014-08-21 14:24:43 +01:00
|
|
|
sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748";
|
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild twt ];
|
2014-08-21 14:24:43 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ocaml_sqlite3 ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mlin/ocaml-sqlite3EZ";
|
2014-08-21 14:24:43 +01:00
|
|
|
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
|
2014-09-21 11:02:55 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-08-21 14:24:43 +01:00
|
|
|
};
|
|
|
|
}
|