2021-10-30 14:58:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }:
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";
|
2014-09-21 10:02:55 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 16:02:42 +00:00
|
|
|
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2021-10-30 14:58:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml-sqlite3EZ";
|
|
|
|
version = "0.1.0";
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2021-10-30 14:58:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mlin";
|
|
|
|
repo = "ocaml-sqlite3EZ";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-pKysvth0efxJeyJQY2Dnqarg7OtsKyyLnFV/1ZhsfDY=";
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 06:44:25 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild twt ];
|
2014-08-21 13:24:43 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ocaml_sqlite3 ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mlin/ocaml-sqlite3EZ";
|
2014-08-21 13:24:43 +00:00
|
|
|
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
|
2014-09-21 10:02:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2021-10-30 14:58:33 +00:00
|
|
|
platforms = ocaml.meta.platforms or [ ];
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
}
|