Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions pkgs/development/tools/ocaml/ocp-browser/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
fetchFromGitHub,
buildDunePackage,
cppo,
ocp-index,
cmdliner,
re,
lambda-term,
zed,
}:

buildDunePackage (finalAttrs: {
pname = "ocp-browser";
version = "1.4.0";

minimalOCamlVersion = "4.08";

src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocp-index";
tag = finalAttrs.version;
hash = "sha256-pv6aBJjRkibISpZEnlfyn72smcYEbZoPQoQH2p/JwH0=";
};

nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [
cmdliner
lambda-term
ocp-index
re
zed
];

meta = {
homepage = "https://github.com/OCamlPro/ocp-index";
description = "Console browser for the documentation of installed OCaml libraries";
changelog = "https://github.com/OCamlPro/ocp-index/raw/${finalAttrs.version}/CHANGES.md";
license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [ redianthus ];
mainProgram = "ocp-browser";
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,8 @@ let

ocolor = callPackage ../development/ocaml-modules/ocolor { };

ocp-browser = callPackage ../development/tools/ocaml/ocp-browser { };

ocp-build = callPackage ../development/tools/ocaml/ocp-build { };

ocp-indent = callPackage ../development/tools/ocaml/ocp-indent { };
Expand Down
Loading