mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
* Add ocaml-sqlite3
svn path=/nixpkgs/trunk/; revision=25065
This commit is contained in:
parent
e1bbcecbaf
commit
ba8bc4dd33
35
pkgs/development/ocaml-modules/sqlite3/default.nix
Normal file
35
pkgs/development/ocaml-modules/sqlite3/default.nix
Normal file
@ -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
|
||||
];
|
||||
};
|
||||
}
|
@ -2009,6 +2009,8 @@ let
|
||||
|
||||
ocaml_react = callPackage ../development/ocaml-modules/react { };
|
||||
|
||||
ocaml_sqlite3 = callPackage ../development/ocaml-modules/sqlite3 { };
|
||||
|
||||
ocaml_ssl = callPackage ../development/ocaml-modules/ssl { };
|
||||
|
||||
ounit = callPackage ../development/ocaml-modules/ounit { };
|
||||
|
Loading…
Reference in New Issue
Block a user