git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15924 from wizeman/u/ocaml-sqlexpr

Add ocamlPackages.sqlexpr and ocamlPackages.estring

commit8ff2d76f7a297bbc740070d51ac4b569123ff251 authorvbgl <vbgl@users.noreply.github.com> dateThu 2 Jun 2016, 18:09 (10 years ago) parentc544cbcd1be545
3 files changed+40
pkgs/development/ocaml-modules/estring/default.nix+17 pkgs/development/ocaml-modules/sqlexpr/default.nix+19 pkgs/top-level/all-packages.nix+4
pkgs/development/ocaml-modules/estring/default.nixnew file+17
@@ -0,0 +1,17 @@
1+{ stdenv, buildOcaml, fetchurl }:
2+
3+buildOcaml rec {
4+ name = "estring";
5+ version = "1.3";
6+
7+ src = fetchurl {
8+ url = "https://forge.ocamlcore.org/frs/download.php/1012/estring-${version}.tar.gz";
9+ sha256 = "0b6znz5igm8pp28w4b7sgy82rpd9m5aw6ss933rfbw1mrh05gvcg";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ homepage = "http://estring.forge.ocamlcore.org/";
14+ description = "Extension for string literals";
15+ license = licenses.bsd3;
16+ };
17+}
pkgs/development/ocaml-modules/sqlexpr/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, buildOcaml, fetchurl, ocaml_batteries, csv, ocaml_lwt, ocaml_sqlite3, estring }:
2+
3+buildOcaml rec {
4+ name = "sqlexpr";
5+ version = "0.5.5";
6+
7+ src = fetchurl {
8+ url = "https://forge.ocamlcore.org/frs/download.php/1203/ocaml-sqlexpr-${version}.tar.gz";
9+ sha256 = "02pi0xxr3xzalwpvcaq96k57wz2vxj20l2mga1a4d2ddvhran8kr";
10+ };
11+
12+ propagatedBuildInputs = [ ocaml_batteries csv ocaml_lwt ocaml_sqlite3 estring ];
13+
14+ meta = with stdenv.lib; {
15+ homepage = "http://github.com/mfp/ocaml-sqlexpr";
16+ description = "Type-safe, convenient SQLite database access";
17+ license = licenses.lgpl21;
18+ };
19+}
pkgs/top-level/all-packages.nix+4
@@ -4916,6 +4916,8 @@ in
49164916
49174917 erm_xmpp = callPackage ../development/ocaml-modules/erm_xmpp { };
49184918
4919+ estring = callPackage ../development/ocaml-modules/estring { };
4920+
49194921 ezjsonm = callPackage ../development/ocaml-modules/ezjsonm {
49204922 lwt = ocaml_lwt;
49214923 };
@@ -5095,6 +5097,8 @@ in
50955097
50965098 sequence = callPackage ../development/ocaml-modules/sequence { };
50975099
5100+ sqlexpr = callPackage ../development/ocaml-modules/sqlexpr { };
5101+
50985102 tuntap = callPackage ../development/ocaml-modules/tuntap { };
50995103
51005104 tyxml = callPackage ../development/ocaml-modules/tyxml { };