3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/mysql/default.nix

38 lines
977 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ocaml, findlib, mysql }:
# TODO: la versione stabile da' un errore di compilazione dovuto a
# qualche cambiamento negli header .h
# TODO: compilazione di moduli dipendenti da zip, ssl, tcl, gtk, gtk2
let
pname = "ocaml-mysql";
in
2016-10-05 08:32:30 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "1.2.1";
src = fetchurl {
url = "http://ygrek.org.ua/p/release/ocaml-mysql/${name}.tar.gz";
sha256 = "06mb2bq7v37wn0lza61917zqgb4bsg1xxb73myjyn88p6khl6yl2";
};
2013-06-16 21:25:08 +01:00
configureFlags = [
"--prefix=$out"
2016-10-05 08:32:30 +01:00
"--libdir=$out/lib/ocaml/${ocaml.version}/site-lib/mysql"
2013-06-16 21:25:08 +01:00
];
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
propagatedBuildInputs = [ mysql.client ];
meta = {
2013-06-16 21:25:08 +01:00
homepage = http://ocaml-mysql.forge.ocamlcore.org;
description = "Bindings for interacting with MySQL databases from ocaml";
license = stdenv.lib.licenses.lgpl21Plus;
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}