about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-16 04:20:00 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2023-11-17 07:54:00 +0100
commitc757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad (patch)
tree065bc143dc5b13f88a37a89ce32f6133cb797b6e
parentdebcb43e19ccb7ed3506e6ffe32ef7ecc4dd8ae5 (diff)
downloadnixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar.gz
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar.bz2
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar.lz
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar.xz
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.tar.zst
nixlib-c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad.zip
ocaml-ng.ocamlPackages_5_1.riot: init at 0.0.2
-rw-r--r--pkgs/development/ocaml-modules/riot/default.nix37
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/riot/default.nix b/pkgs/development/ocaml-modules/riot/default.nix
new file mode 100644
index 000000000000..e03ac2c209ed
--- /dev/null
+++ b/pkgs/development/ocaml-modules/riot/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, bigstringaf
+, buildDunePackage
+, fetchurl
+, iomux
+, ptime
+, uri
+}:
+
+buildDunePackage rec {
+  pname = "riot";
+  version = "0.0.2";
+
+  minimalOCamlVersion = "5.1";
+
+  src = fetchurl {
+    url = "https://github.com/leostera/riot/releases/download/${version}/riot-${version}.tbz";
+    hash = "sha256-ck/tr5o0nKF4WNgjPODHg1/tlaKv1JtuYgqYfIIZ78Q=";
+  };
+
+  propagatedBuildInputs = [
+    bigstringaf
+    iomux
+    ptime
+    uri
+  ];
+
+  doCheck = true;
+
+  meta = {
+    description = "An actor-model multi-core scheduler for OCaml 5";
+    homepage = "https://github.com/leostera/riot";
+    changelog = "https://github.com/leostera/riot/blob/${version}/CHANGES.md";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ marsam ];
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 54e0d011e749..516db732bc43 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -1606,6 +1606,8 @@ let
 
     ringo = callPackage ../development/ocaml-modules/ringo { };
 
+    riot = callPackage ../development/ocaml-modules/riot { };
+
     rock = callPackage ../development/ocaml-modules/rock { };
 
     rope = callPackage ../development/ocaml-modules/rope { };