1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/development/ocaml-modules/sqlite3/default.nix

33 lines
877 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 = stdenv.lib.licenses.mit;
platforms = ocaml.meta.platforms;
maintainers = [
stdenv.lib.maintainers.z77z
];
};
}