summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/iomux
diff options
context:
space:
mode:
authortoastal <toastal@posteo.net>2023-05-06 20:20:02 +0700
committertoastal <toastal@posteo.net>2023-06-13 13:17:47 +0700
commitbf7e951996bc9d6ad734e5670e2a517dfdbaa7b1 (patch)
tree381ee7d28f437341e929c679b6da0a634a20734a /pkgs/development/ocaml-modules/iomux
parent8201afb77f65bf56ca52fe79d510fa9ad4e66515 (diff)
downloadnixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar.gz
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar.bz2
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar.lz
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar.xz
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.tar.zst
nixpkgs-bf7e951996bc9d6ad734e5670e2a517dfdbaa7b1.zip
ocamlPackages.iomux: init at 0.3
Diffstat (limited to 'pkgs/development/ocaml-modules/iomux')
-rw-r--r--pkgs/development/ocaml-modules/iomux/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/iomux/default.nix b/pkgs/development/ocaml-modules/iomux/default.nix
new file mode 100644
index 00000000000..f1dc827a32d
--- /dev/null
+++ b/pkgs/development/ocaml-modules/iomux/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, fetchurl
+, buildDunePackage
+, dune-configurator
+, alcotest
+}:
+
+buildDunePackage rec {
+  pname = "iomux";
+  version = "0.3";
+
+  minimalOCamlVersion = "4.08";
+  duneVersion = "3";
+
+  src = fetchurl {
+    url = "https://github.com/haesbaert/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
+    sha256 = "zNJ3vVOv0BEpHLiC8Y610F87uiMlfYNo28ej0H+EU+c=";
+  };
+
+  buildInputs = [
+    dune-configurator
+  ];
+
+  checkInputs = [
+    alcotest
+  ];
+
+  meta = {
+    homepage = "https://github.com/haesbaert/ocaml-${pname}";
+    description = "IO Multiplexers for OCaml";
+    license = with lib.licenses; [ isc ];
+    maintainers = with lib.maintainers; [ toastal ];
+  };
+}