Skip to content

Commit

Permalink
ocamlPackages.odoc: 1.5.1 -> 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sternenseemann authored and vbgl committed Dec 7, 2020
1 parent 4462f06 commit a817ce3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions pkgs/development/ocaml-modules/odoc/default.nix
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";
};
}
2 changes: 1 addition & 1 deletion pkgs/development/tools/ocaml/ocamlformat/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildDunePackage rec {

minimumOCamlVersion = "4.06";

useDune2 = lib.versionAtLeast version "0.14";
useDune2 = true;

buildInputs =
if lib.versionAtLeast version "0.14"
Expand Down

0 comments on commit a817ce3

Please sign in to comment.