summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/sqlexpr/default.nix
blob: 7d988e27ff0ef4d91785a2c6e58367964d3a3b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, buildDunePackage, ocaml_lwt
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3
}:

buildDunePackage rec {
  pname = "sqlexpr";
  version = "0.9.0";

  src = fetchurl {
  url = "https://github.com/mfp/ocaml-sqlexpr/releases/download/${version}/ocaml-sqlexpr-${version}.tar.gz";
  sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd";
  };

  buildInputs = [ lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
  propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];
  doCheck = true;

  meta = {
    description = "Type-safe, convenient SQLite database access";
    homepage = "https://github.com/mfp/ocaml-sqlexpr";
    license = stdenv.lib.licenses.lgpl21;
    maintainers = [ stdenv.lib.maintainers.vbgl ];
  };
}