summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntonio Nuno Monteiro <anmonteiro@gmail.com>2021-03-21 18:44:36 -0700
committerVincent Laporte <vbgl@users.noreply.github.com>2021-03-22 18:54:04 +0100
commit6a0b9d6992f389b05abe88d805ce3cc318b87869 (patch)
tree41dca42d1bba639efd57a80665d72e80d551b11f
parent9334a29720c76dcfdbc54ec9e8703473aa1729d8 (diff)
downloadnixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar.gz
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar.bz2
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar.lz
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar.xz
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.tar.zst
nixpkgs-6a0b9d6992f389b05abe88d805ce3cc318b87869.zip
faraday-{lwt,lwt-unix,async}: add Faraday runtimes
Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
-rw-r--r--pkgs/development/ocaml-modules/faraday/async.nix14
-rw-r--r--pkgs/development/ocaml-modules/faraday/lwt-unix.nix12
-rw-r--r--pkgs/development/ocaml-modules/faraday/lwt.nix12
-rw-r--r--pkgs/top-level/ocaml-packages.nix6
4 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/faraday/async.nix b/pkgs/development/ocaml-modules/faraday/async.nix
new file mode 100644
index 00000000000..666eb684925
--- /dev/null
+++ b/pkgs/development/ocaml-modules/faraday/async.nix
@@ -0,0 +1,14 @@
+{ buildDunePackage, faraday, core, async }:
+
+buildDunePackage rec {
+  pname = "faraday-async";
+  inherit (faraday) version src useDune2;
+
+  minimumOCamlVersion = "4.08";
+
+  propagatedBuildInputs = [ faraday core async ];
+
+  meta = faraday.meta // {
+    description = "Async support for Faraday";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/faraday/lwt-unix.nix b/pkgs/development/ocaml-modules/faraday/lwt-unix.nix
new file mode 100644
index 00000000000..23914de2657
--- /dev/null
+++ b/pkgs/development/ocaml-modules/faraday/lwt-unix.nix
@@ -0,0 +1,12 @@
+{ buildDunePackage, faraday, faraday-lwt, lwt }:
+
+buildDunePackage rec {
+  pname = "faraday-lwt-unix";
+  inherit (faraday) version src useDune2 minimumOCamlVersion;
+
+  propagatedBuildInputs = [ lwt faraday-lwt ];
+
+  meta = faraday.meta // {
+    description = "Lwt + Unix support for Faraday";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/faraday/lwt.nix b/pkgs/development/ocaml-modules/faraday/lwt.nix
new file mode 100644
index 00000000000..7fe7319575c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/faraday/lwt.nix
@@ -0,0 +1,12 @@
+{ buildDunePackage, faraday, lwt }:
+
+buildDunePackage rec {
+  pname = "faraday-lwt";
+  inherit (faraday) version src useDune2 minimumOCamlVersion;
+
+  propagatedBuildInputs = [ faraday lwt ];
+
+  meta = faraday.meta // {
+    description = "Lwt support for Faraday";
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 6a8d29e42b2..9606cd48720 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -345,6 +345,12 @@ let
 
     faraday = callPackage ../development/ocaml-modules/faraday { };
 
+    faraday-async = callPackage ../development/ocaml-modules/faraday/async.nix { };
+
+    faraday-lwt = callPackage ../development/ocaml-modules/faraday/lwt.nix { };
+
+    faraday-lwt-unix = callPackage ../development/ocaml-modules/faraday/lwt-unix.nix { };
+
     farfadet = callPackage ../development/ocaml-modules/farfadet { };
 
     fdkaac = callPackage ../development/ocaml-modules/fdkaac { };