summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/sqlite3
diff options
context:
space:
mode:
authorMarco Maggesi <maggesi@math.unifi.it>2010-12-11 15:05:26 +0000
committerMarco Maggesi <maggesi@math.unifi.it>2010-12-11 15:05:26 +0000
commitba8bc4dd330e1d478b3b75430687ebe9e7a27fe3 (patch)
tree1ff393a07ac0bf643ffd27514df2fb4ea94742cf /pkgs/development/ocaml-modules/sqlite3
parente1bbcecbaf6adaad845f878bdb201f2e1d2b4132 (diff)
downloadnixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar.gz
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar.bz2
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar.lz
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar.xz
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.tar.zst
nixpkgs-ba8bc4dd330e1d478b3b75430687ebe9e7a27fe3.zip
* Add ocaml-sqlite3
svn path=/nixpkgs/trunk/; revision=25065
Diffstat (limited to 'pkgs/development/ocaml-modules/sqlite3')
-rw-r--r--pkgs/development/ocaml-modules/sqlite3/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/sqlite3/default.nix b/pkgs/development/ocaml-modules/sqlite3/default.nix
new file mode 100644
index 00000000000..d542cfe14f6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/sqlite3/default.nix
@@ -0,0 +1,35 @@
+{stdenv, fetchurl, sqlite, ocaml, findlib}:
+
+let
+  ocaml_version = (builtins.parseDrvName ocaml.name).version;
+  version = "1.5.8";
+in
+
+stdenv.mkDerivation {
+  name = "ocaml-sqlite3-${version}";
+
+  src = fetchurl {
+    url = "http://hg.ocaml.info/release/ocaml-sqlite3/archive/" +
+          "release-${version}.tar.bz2";
+    sha256 = "0ccy9b4pl9586vlzdkk3kvkz8xqc023ih1aw4nndyjnabkvgl832";
+  };
+
+  buildInputs = [ocaml findlib];
+
+  configureFlags = "--with-sqlite3=${sqlite}";
+
+  preConfigure = ''
+    export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR
+    ensureDir $out/bin
+  '';
+
+  meta = {
+    homepage = "http://ocaml.info/home/ocaml_sources.html#ocaml-sqlite3";
+    description = "OCaml bindings to the SQLite 3 database access library";
+    license = "MIT/X11";
+    platforms = ocaml.meta.platforms;
+    maintainers = [
+      stdenv.lib.maintainers.z77z
+    ];
+  };
+}