diff options
author | Russell O'Connor <roconnor@theorem.ca> | 2010-12-31 17:48:55 +0000 |
---|---|---|
committer | Russell O'Connor <roconnor@theorem.ca> | 2010-12-31 17:48:55 +0000 |
commit | 88ec92d14c400eee0164ace51e5b37e8bf035676 (patch) | |
tree | c7c5d538c20ed91252dbd1380da844b50d367697 /pkgs/development/ocaml-modules/mysql | |
parent | d3bb1b263001b3035f779ffcdb4588b7a8284eae (diff) | |
download | nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.gz nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.bz2 nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.lz nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.xz nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.zst nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.zip |
Matita and its dependencies.
svn path=/nixpkgs/trunk/; revision=25328
Diffstat (limited to 'pkgs/development/ocaml-modules/mysql')
-rw-r--r-- | pkgs/development/ocaml-modules/mysql/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mysql/default.nix b/pkgs/development/ocaml-modules/mysql/default.nix new file mode 100644 index 000000000000..32455fb4310c --- /dev/null +++ b/pkgs/development/ocaml-modules/mysql/default.nix @@ -0,0 +1,42 @@ +{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 + ocaml_version = (builtins.parseDrvName ocaml.name).version; + pname = "ocaml-mysql"; + version = "1.0.4"; +in + +stdenv.mkDerivation { + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://raevnos.pennmush.org/code/${pname}/${pname}-${version}.tar.gz"; + sha256 = "17i5almar8qrhc9drq0cvlprxf9wi9szj5kh4gnz11l9al8i3lar"; + }; + + buildInputs = [ocaml findlib mysql]; + + createFindlibDestdir = true; + + propagatedbuildInputs = [mysql]; + + preConfigure = '' + export LDFLAGS="-L${mysql}/lib/mysql" + ''; + + buildPhase = '' + make + make opt + ''; + + meta = { + homepage = http://raevnos.pennmush.org/code/ocaml-mysql/; + description = "Bindings for interacting with MySQL databases from ocaml"; + license = "LGPLv2.1+"; + maintainers = [ stdenv.lib.maintainers.roconnor ]; + }; +} |