1 { stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, libmysqlclient }:
3 # TODO: la versione stabile da' un errore di compilazione dovuto a
4 # qualche cambiamento negli header .h
5 # TODO: compilazione di moduli dipendenti da zip, ssl, tcl, gtk, gtk2
11 stdenv.mkDerivation rec {
12 name = "${pname}-${version}";
16 url = "http://ygrek.org.ua/p/release/ocaml-mysql/${name}.tar.gz";
17 sha256 = "06mb2bq7v37wn0lza61917zqgb4bsg1xxb73myjyn88p6khl6yl2";
22 "--libdir=$out/lib/ocaml/${ocaml.version}/site-lib/mysql"
25 nativeBuildInputs = [ ocaml findlib ];
27 createFindlibDestdir = true;
29 propagatedBuildInputs = [ libmysqlclient ];
35 url = "https://github.com/ygrek/ocaml-mysql/compare/v1.2.1...d6d1b3b262ae2cf493ef56f1dd7afcf663a70a26.patch";
36 sha256 = "0018s2wcrvbsw9yaqmwq500qmikwffrgdp5xg9b8v7ixhd4gi6hn";
41 homepage = "http://ocaml-mysql.forge.ocamlcore.org";
42 description = "Bindings for interacting with MySQL databases from ocaml";
43 license = lib.licenses.lgpl21Plus;
44 maintainers = [ lib.maintainers.roconnor ];