mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
b94953dbd4
Odig is a tool for building the documentation of OCaml libraries. It is described with the recent `buildTopkgPackage` function.
26 lines
788 B
Nix
26 lines
788 B
Nix
{ 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 ];
|
|
};
|
|
}
|