nixpkgs/pkgs/development/ocaml-modules/sqlite3/default.nix

33 lines
863 B
Nix
Raw Normal View History

2013-06-04 19:36:11 +01:00
{stdenv, fetchurl, sqlite, ocaml, findlib, pkgconfig}:
stdenv.mkDerivation {
2013-06-04 19:36:11 +01:00
name = "ocaml-sqlite3-2.0.4";
src = fetchurl {
2013-06-04 19:36:11 +01:00
url = https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/sqlite3-ocaml-2.0.4.tar.gz;
sha256 = "51ccb4c7a240eb40652c59e1770cfe1827dfa1eb926c969d19ff414aef4e80a1";
};
2013-06-04 19:36:11 +01:00
buildInputs = [ocaml findlib pkgconfig ];
2013-06-04 19:36:11 +01:00
#configureFlags = "--with-sqlite3=${sqlite}";
preConfigure = ''
2013-06-04 19:36:11 +01:00
export PKG_CONFIG_PATH=${sqlite}/lib/pkgconfig/
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
];
};
}