Files
nixpkgs/pkgs/development/ocaml-modules/odig/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
805 B
Nix

{
lib,
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 = {
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 = lib.licenses.isc;
maintainers = [ lib.maintainers.Julow ];
};
}