-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4462f06
commit a817ce3
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
{ lib, fetchFromGitHub, buildDunePackage | ||
{ lib, fetchurl, buildDunePackage, ocaml | ||
, astring, cmdliner, cppo, fpath, result, tyxml | ||
, markup, alcotest, yojson, sexplib, jq | ||
}: | ||
|
||
buildDunePackage rec { | ||
pname = "odoc"; | ||
version = "1.5.1"; | ||
version = "1.5.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ocaml"; | ||
repo = pname; | ||
rev = version; | ||
sha256 = "0z2nisg1vb5xlk41hqw8drvj90v52wli7zvnih6a844cg6xsvvj2"; | ||
minimumOCamlVersion = "4.02"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/ocaml/odoc/releases/download/${version}/odoc-${version}.tbz"; | ||
sha256 = "0wa87h8q6izcc6rkzqn944vrb3hmc21lf0d0rmr8rhhbcvr66i6j"; | ||
}; | ||
|
||
useDune2 = true; | ||
|
||
buildInputs = [ astring cmdliner cppo fpath result tyxml ]; | ||
|
||
checkInputs = [ alcotest markup yojson sexplib jq ]; | ||
doCheck = lib.versionAtLeast ocaml.version "4.05"; | ||
|
||
meta = { | ||
description = "A documentation generator for OCaml"; | ||
license = lib.licenses.isc; | ||
maintainers = [ lib.maintainers.vbgl ]; | ||
inherit (src.meta) homepage; | ||
homepage = "https://github.com/ocaml/odoc"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters