about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-12-31 11:42:31 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-01-07 13:51:10 +0100
commit9fb83711c2c5c11a1e8a895ab98a268ee68a40ea (patch)
tree213453bac510d2f967628526223ae9eb74980bde
parent54d363b012e32c0918b2af05fb7673ff08c7e781 (diff)
ocamlPackages.brr: init at 0.0.4
-rw-r--r--pkgs/development/ocaml-modules/brr/default.nix26
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/brr/default.nix b/pkgs/development/ocaml-modules/brr/default.nix
new file mode 100644
index 0000000000000..709a9b0929261
--- /dev/null
+++ b/pkgs/development/ocaml-modules/brr/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, lib, fetchurl
+, ocaml, findlib, ocamlbuild, topkg
+, js_of_ocaml-compiler
+, js_of_ocaml-toplevel
+, note
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ocaml${ocaml.version}-brr";
+  version = "0.0.4";
+  src = fetchurl {
+    url = "https://erratique.ch/software/brr/releases/brr-${version}.tbz";
+    hash = "sha256-v+Ik1tdRBVnNDqhmNoJuLelL3k5OhxIsUorGdTb9sbw=";
+  };
+  buildInputs = [ ocaml findlib ocamlbuild topkg ];
+  propagatedBuildInputs = [ js_of_ocaml-compiler js_of_ocaml-toplevel note ];
+  inherit (topkg) buildPhase installPhase;
+
+  meta = {
+    homepage = "https://erratique.ch/software/brr";
+    description = "A toolkit for programming browsers in OCaml";
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
+    inherit (ocaml.meta) platforms;
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index ba285a95a5826..ee3b3ad21a1a4 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -98,6 +98,8 @@ let
 
     brisk-reconciler = callPackage ../development/ocaml-modules/brisk-reconciler { };
 
+    brr = callPackage ../development/ocaml-modules/brr { };
+
     bwd = callPackage ../development/ocaml-modules/bwd { };
 
     bz2 = callPackage ../development/ocaml-modules/bz2 { };