at 24.05-pre 29 lines 867 B view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg 2, astring, bos, cmdliner, rresult 3}: 4 5stdenv.mkDerivation rec { 6 pname = "ocaml${ocaml.version}-webbrowser"; 7 version = "0.6.1"; 8 src = fetchurl { 9 url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz"; 10 sha256 = "137a948bx7b71zfv4za3hhznrn5lzbbrgzjy0das83zms508isx3"; 11 }; 12 13 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; 14 buildInputs = [ topkg ]; 15 propagatedBuildInputs = [ astring bos cmdliner rresult ]; 16 17 strictDeps = true; 18 19 inherit (topkg) buildPhase installPhase; 20 21 meta = { 22 description = "Open and reload URIs in browsers from OCaml"; 23 homepage = "https://erratique.ch/software/webbrowser"; 24 license = lib.licenses.isc; 25 maintainers = [ lib.maintainers.vbgl ]; 26 mainProgram = "browse"; 27 inherit (ocaml.meta) platforms; 28 }; 29}