From daaba731a74e8dac220b97dc9875049c2810e168 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 16 Dec 2018 10:46:31 +0000 Subject: [PATCH] ocamlPackages.csv-lwt: init at 2.2 --- pkgs/development/ocaml-modules/csv/lwt.nix | 14 ++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/ocaml-modules/csv/lwt.nix diff --git a/pkgs/development/ocaml-modules/csv/lwt.nix b/pkgs/development/ocaml-modules/csv/lwt.nix new file mode 100644 index 000000000000..2fa9296d7e44 --- /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 9c3e81e3177d..ba583418163a 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 { };