2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, fetchurl, buildDunePackage, ocaml_lwt
|
2018-07-23 08:22:18 +01:00
|
|
|
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3
|
|
|
|
}:
|
2016-06-01 16:04:55 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "sqlexpr";
|
2018-07-23 08:22:18 +01:00
|
|
|
version = "0.9.0";
|
2016-06-01 16:04:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-07-23 08:22:18 +01:00
|
|
|
url = "https://github.com/mfp/ocaml-sqlexpr/releases/download/${version}/ocaml-sqlexpr-${version}.tar.gz";
|
|
|
|
sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd";
|
2016-06-01 16:04:55 +01:00
|
|
|
};
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildInputs = [ lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
|
2018-07-23 08:22:18 +01:00
|
|
|
propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-07-05 13:28:06 +01:00
|
|
|
preBuild = "rm META.sqlexpr";
|
|
|
|
|
2018-07-23 08:22:18 +01:00
|
|
|
meta = {
|
2016-06-01 16:04:55 +01:00
|
|
|
description = "Type-safe, convenient SQLite database access";
|
2018-07-23 08:22:18 +01:00
|
|
|
homepage = "https://github.com/mfp/ocaml-sqlexpr";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
2016-06-01 16:04:55 +01:00
|
|
|
};
|
|
|
|
}
|