diff --git a/pkgs/development/ocaml-modules/brr/default.nix b/pkgs/development/ocaml-modules/brr/default.nix new file mode 100644 index 00000000000..709a9b09292 --- /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 ba285a95a58..ee3b3ad21a1 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 { };