1{
2 stdenv,
3 lib,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 astring,
10 bos,
11 cmdliner,
12 rresult,
13}:
14
15stdenv.mkDerivation rec {
16 pname = "ocaml${ocaml.version}-webbrowser";
17 version = "0.6.2";
18 src = fetchurl {
19 url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz";
20 sha256 = "sha256-4SYAf1Qo7aUiCp5587wO1VvjcQHP3NBXeFfAaHE/s+A=";
21 };
22
23 nativeBuildInputs = [
24 ocaml
25 findlib
26 ocamlbuild
27 topkg
28 ];
29 buildInputs = [ topkg ];
30 propagatedBuildInputs = [
31 astring
32 bos
33 cmdliner
34 rresult
35 ];
36
37 strictDeps = true;
38
39 inherit (topkg) buildPhase installPhase;
40
41 meta = {
42 description = "Open and reload URIs in browsers from OCaml";
43 homepage = "https://erratique.ch/software/webbrowser";
44 license = lib.licenses.isc;
45 maintainers = [ lib.maintainers.vbgl ];
46 mainProgram = "browse";
47 inherit (ocaml.meta) platforms;
48 };
49}