summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/sqlite3/default.nix
blob: a01660216bb07be18680f5696cda9d44393e91b8 (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
25
26
27
28
29
30
31
{stdenv, fetchurl, sqlite, ocaml, findlib}:

stdenv.mkDerivation {
  name = "ocaml-sqlite3-1.6.3";

  src = fetchurl {
    url = https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/sqlite3-ocaml-1.6.3.tar.gz;
    sha256 = "004wysf80bmb8r4yaa648v0bqrh2ry3kzy763gdksw4n15blghv5";
  };

  buildInputs = [ocaml findlib];

  configureFlags = "--with-sqlite3=${sqlite}";

  preConfigure = ''
    export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR
    mkdir -p $out/bin
  '';

  createFindlibDestdir = true;

  meta = {
    homepage = https://bitbucket.org/mmottl/sqlite3-ocaml;
    description = "OCaml bindings to the SQLite 3 database access library";
    license = "MIT/X11";
    platforms = ocaml.meta.platforms;
    maintainers = [
      stdenv.lib.maintainers.z77z
    ];
  };
}