odig: Init at 0.0.9

Odig is a tool for building the documentation of OCaml libraries. It is
described with the recent `buildTopkgPackage` function.
This commit is contained in:
Jules Aguillon 2023-07-04 15:57:37 +02:00
parent 187d777aad
commit b94953dbd4
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ lib, stdenv, fetchurl, buildTopkgPackage, cmdliner, odoc, b0 }:
buildTopkgPackage rec {
pname = "odig";
version = "0.0.9";
src = fetchurl {
url = "${meta.homepage}/releases/odig-${version}.tbz";
sha256 = "sha256-sYKvGYkxeF5FmrNQdOyMAtlsJqhlmUESi9SkPn/cjM4=";
};
buildInputs = [ cmdliner odoc b0 ];
meta = with lib; {
description = "Lookup documentation of installed OCaml packages";
longDescription = ''
odig is a command line tool to lookup documentation of installed OCaml
packages. It shows package metadata, readmes, change logs, licenses,
cross-referenced `odoc` API documentation and manuals.
'';
homepage = "https://erratique.ch/software/odig";
license = licenses.isc;
maintainers = [ maintainers.Julow ];
};
}

View File

@ -16863,6 +16863,8 @@ with pkgs;
ocamlformat_0_22_4 ocamlformat_0_23_0 ocamlformat_0_24_1 ocamlformat_0_25_1
ocamlformat_0_26_0;
inherit (ocamlPackages) odig;
orc = callPackage ../development/compilers/orc { };
orocos-kdl = callPackage ../development/libraries/orocos-kdl { };

View File

@ -1332,6 +1332,8 @@ let
odate = callPackage ../development/ocaml-modules/odate { };
odig = callPackage ../development/ocaml-modules/odig { };
odoc = callPackage ../development/ocaml-modules/odoc { };
odoc-parser = callPackage ../development/ocaml-modules/odoc-parser { };