summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2021-01-23 22:22:59 -0500
committerVincent Laporte <Vincent.Laporte@gmail.com>2021-01-30 11:37:36 +0100
commit5b13986979cd15a31c9cc963a17715f32ca3fd80 (patch)
treef34a7bab04b4c35f858ab90de1e1aa680268a1e7 /pkgs/development
parentf58c4e236f92df8d7887ce3450a3989f80ae1f6c (diff)
ocamlPackages.mariadb: init at 1.1.4
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/ocaml-modules/mariadb/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mariadb/default.nix b/pkgs/development/ocaml-modules/mariadb/default.nix
new file mode 100644
index 000000000000..ed3e5999b416
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mariadb/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, lib, fetchFromGitHub, buildOasisPackage
+, ctypes, mariadb, libmysqlclient }:
+
+buildOasisPackage rec {
+ pname = "mariadb";
+ version = "1.1.4";
+
+ minimumOCamlVersion = "4.07.0";
+
+ src = fetchFromGitHub {
+ owner = "andrenth";
+ repo = "ocaml-mariadb";
+ rev = version;
+ sha256 = "1rxqvxr6sv4x2hsi05qm9jz0asaq969m71db4ckl672rcql1kwbr";
+ };
+
+ buildInputs = [ mariadb libmysqlclient ];
+ propagatedBuildInputs = [ ctypes ];
+
+ meta = {
+ description = "OCaml bindings for MariaDB";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ bcc32 ];
+ homepage = "https://github.com/andrenth/ocaml-mariadb";
+ };
+}