Skip to content

Commit

Permalink
Merge pull request #119686 from marsam/update-ocamlformat
Browse files Browse the repository at this point in the history
ocamlformat: 0.17.0 -> 0.18.0
  • Loading branch information
marsam committed Apr 21, 2021
2 parents 8b2b6e4 + 212adc0 commit 04bb7dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
6 changes: 5 additions & 1 deletion pkgs/development/tools/ocaml/ocamlformat/default.nix
Expand Up @@ -52,5 +52,9 @@ rec {
version = "0.17.0";
};

ocamlformat = ocamlformat_0_17_0;
ocamlformat_0_18_0 = mkOCamlformat {
version = "0.18.0";
};

ocamlformat = ocamlformat_0_18_0;
}
28 changes: 22 additions & 6 deletions pkgs/development/tools/ocaml/ocamlformat/generic.nix
Expand Up @@ -21,19 +21,18 @@ let src =
"0.15.1" = "1x6fha495sgk4z05g0p0q3zfqm5l6xzmf6vjm9g9g7c820ym2q9a";
"0.16.0" = "1vwjvvwha0ljc014v8jp8snki5zsqxlwd7x0dl0rg2i9kcmwc4mr";
"0.17.0" = "0f1lxp697yq61z8gqxjjaqd2ns8fd1vjfggn55x0gh9dx098p138";
"0.18.0" = "0571kzmb1h03qj74090n3mg8wfbh29qqrkdjkai6rnl5chll86lq";
}."${version}";
}
; in

let ocamlPackages =
};
ocamlPackages =
if lib.versionAtLeast version "0.14.3"
then ocaml-ng.ocamlPackages
else ocaml-ng.ocamlPackages_4_07
; in

with ocamlPackages;

buildDunePackage rec {
buildDunePackage {
pname = "ocamlformat";
inherit src version;

Expand All @@ -45,7 +44,24 @@ buildDunePackage rec {
useDune2 = true;

buildInputs =
if lib.versionAtLeast version "0.17.0"
if lib.versionAtLeast version "0.18.0"
then [
base
cmdliner
fpath
odoc
re
stdio
uuseg
uutf
fix
menhir
dune-build-info
ocaml-version
# Changed since 0.16.0:
(ppxlib.override { version = "0.22.0"; })
]
else if lib.versionAtLeast version "0.17.0"
then [
base
cmdliner
Expand Down

0 comments on commit 04bb7dc

Please sign in to comment.