summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-12-16 10:46:31 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-12-24 14:57:07 +0100
commitdaaba731a74e8dac220b97dc9875049c2810e168 (patch)
tree7832610aab7060626fae1185300ef9ec52aef605
parent60739e534d9eabdeafae69e125dba31fc9c1daaa (diff)
downloadnixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar.gz
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar.bz2
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar.lz
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar.xz
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.tar.zst
nixpkgs-daaba731a74e8dac220b97dc9875049c2810e168.zip
ocamlPackages.csv-lwt: init at 2.2
-rw-r--r--pkgs/development/ocaml-modules/csv/lwt.nix14
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/csv/lwt.nix b/pkgs/development/ocaml-modules/csv/lwt.nix
new file mode 100644
index 00000000000..2fa9296d7e4
--- /dev/null
+++ b/pkgs/development/ocaml-modules/csv/lwt.nix
@@ -0,0 +1,14 @@
+{ lib, buildDunePackage, ocaml, csv, ocaml_lwt }:
+
+if !lib.versionAtLeast ocaml.version "4.02"
+then throw "csv-lwt is not available for OCaml ${ocaml.version}"
+else
+
+buildDunePackage {
+  pname = "csv-lwt";
+  inherit (csv) src version meta;
+
+  propagatedBuildInputs = [ csv ocaml_lwt ];
+
+  doCheck = lib.versionAtLeast ocaml.version "4.03";
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 9c3e81e3177..ba583418163 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -202,6 +202,8 @@ let
       then callPackage ../development/ocaml-modules/csv { }
       else callPackage ../development/ocaml-modules/csv/1.5.nix { };
 
+    csv-lwt = callPackage ../development/ocaml-modules/csv/lwt.nix { };
+
     curses = callPackage ../development/ocaml-modules/curses { };
 
     custom_printf = callPackage ../development/ocaml-modules/custom_printf { };