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