about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/promise_jsoo
diff options
context:
space:
mode:
authorJayesh Bhoot <jayesh@bhoot.sh>2022-08-22 20:13:07 +0530
committerGitHub <noreply@github.com>2022-08-22 16:43:07 +0200
commit2acbedd334a67569f24487d06ea53cb7d256b0a7 (patch)
treedd9200cf3c8eeafa0a0837150b88fdcdbc804fed /pkgs/development/ocaml-modules/promise_jsoo
parentc907ad423beae622e3448ede117b522ee7171822 (diff)
promise_jsoo: init at 0.3.1 (#172194)
Diffstat (limited to 'pkgs/development/ocaml-modules/promise_jsoo')
-rw-r--r--pkgs/development/ocaml-modules/promise_jsoo/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/promise_jsoo/default.nix b/pkgs/development/ocaml-modules/promise_jsoo/default.nix
new file mode 100644
index 0000000000000..061f965e0e52c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/promise_jsoo/default.nix
@@ -0,0 +1,31 @@
+{ lib, fetchurl, buildDunePackage, js_of_ocaml, ppxlib, js_of_ocaml-ppx, gen_js_api, ojs }:
+
+buildDunePackage rec {
+  pname = "promise_jsoo";
+  version = "0.3.1";
+  minimalOCamlVersion = "4.08";
+  duneVersion = "3";
+
+  src = fetchurl {
+    url = "https://github.com/mnxn/promise_jsoo/releases/download/v${version}/promise_jsoo-v${version}.tbz";
+    sha256 = "00pjnsbv0yv3hhxbbl8dsljgr95kjgi9w8j1x46gjyxg9zayrxzl";
+  };
+
+  buildInputs = [
+    ppxlib
+    js_of_ocaml-ppx
+    gen_js_api
+  ];
+
+  propagatedBuildInputs = [
+    js_of_ocaml
+    ojs
+  ];
+
+  meta = {
+    homepage = "https://github.com/mnxn/promise_jsoo";
+    description = "Js_of_ocaml bindings to JS Promises with supplemental functions";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ jayesh-bhoot ];
+  };
+}