about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-04-13 15:51:58 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2020-04-14 18:15:10 +0200
commitf234b2bce737c139d7d31541522572c279168ae4 (patch)
tree2b27009b339931dbd8d4cfef18df2c3a31e09f0b /pkgs/development/ocaml-modules
parent7538b796074e613d39aefebe613f9c31bb7be662 (diff)
ocamlPackages.mirage-flow-unix/-combinators: init at 2.0.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/mirage-flow/combinators.nix13
-rw-r--r--pkgs/development/ocaml-modules/mirage-flow/unix.nix17
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-flow/combinators.nix b/pkgs/development/ocaml-modules/mirage-flow/combinators.nix
new file mode 100644
index 0000000000000..2ad6e5b0b974c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-flow/combinators.nix
@@ -0,0 +1,13 @@
+{ buildDunePackage, mirage-flow, fmt, ocaml_lwt, logs, cstruct, mirage-clock }:
+
+buildDunePackage {
+  pname = "mirage-flow-combinators";
+
+  inherit (mirage-flow) version src;
+
+  propagatedBuildInputs = [ ocaml_lwt logs cstruct mirage-clock mirage-flow ];
+
+  meta = mirage-flow.meta // {
+    description = "Flow implementations and combinators for MirageOS specialized to lwt";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/mirage-flow/unix.nix b/pkgs/development/ocaml-modules/mirage-flow/unix.nix
new file mode 100644
index 0000000000000..7a20ca87f8f35
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-flow/unix.nix
@@ -0,0 +1,17 @@
+{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
+, alcotest, mirage-flow-combinators }:
+
+buildDunePackage {
+  pname = "mirage-flow-unix";
+
+  inherit (mirage-flow) version src;
+
+  propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
+
+  doCheck = true;
+  checkInputs = [ alcotest mirage-flow-combinators ];
+
+  meta = mirage-flow.meta // {
+    description = "Flow implementations and combinators for MirageOS on Unix";
+  };
+}