Skip to content

Commit

Permalink
ocamlformat: Add versions 0.15.1 and 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow authored and vbgl committed Jan 22, 2021
1 parent be14c20 commit bf010da
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
10 changes: 9 additions & 1 deletion pkgs/development/tools/ocaml/ocamlformat/default.nix
Expand Up @@ -40,5 +40,13 @@ rec {
version = "0.15.0";
};

ocamlformat = ocamlformat_0_15_0;
ocamlformat_0_15_1 = mkOCamlformat {
version = "0.15.1";
};

ocamlformat_0_16_0 = mkOCamlformat {
version = "0.16.0";
};

ocamlformat = ocamlformat_0_16_0;
}
20 changes: 19 additions & 1 deletion pkgs/development/tools/ocaml/ocamlformat/generic.nix
Expand Up @@ -18,6 +18,8 @@ let src =
"0.14.2" = "16phz1sg9b070p6fm8d42j0piizg05vghdjmw8aj7xm82b1pm7sz";
"0.14.3" = "13pfakdncddm41cp61p0l98scawbvhx1q4zdsglv7ph87l7zwqfl";
"0.15.0" = "0190vz59n6ma9ca1m3syl3mc8i1smj1m3d8x1jp21f710y4llfr6";
"0.15.1" = "1x6fha495sgk4z05g0p0q3zfqm5l6xzmf6vjm9g9g7c820ym2q9a";
"0.16.0" = "1vwjvvwha0ljc014v8jp8snki5zsqxlwd7x0dl0rg2i9kcmwc4mr";
}."${version}";
}
; in
Expand All @@ -39,7 +41,23 @@ buildDunePackage rec {
useDune2 = true;

buildInputs =
if lib.versionAtLeast version "0.14"
if lib.versionAtLeast version "0.15.1"
then [
base
cmdliner
fpath
odoc
re
stdio
uuseg
uutf
fix
menhir
(ppxlib.override { version = "0.18.0"; })
dune-build-info # lib.versionAtLeast version "0.16.0"
ocaml-version # lib.versionAtLeast version "0.16.0"
]
else if lib.versionAtLeast version "0.14"
then [
base
cmdliner
Expand Down
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -10491,7 +10491,8 @@ in
inherit (callPackage ../development/tools/ocaml/ocamlformat { })
ocamlformat # latest version
ocamlformat_0_11_0 ocamlformat_0_12 ocamlformat_0_13_0 ocamlformat_0_14_0
ocamlformat_0_14_1 ocamlformat_0_14_2 ocamlformat_0_14_3 ocamlformat_0_15_0;
ocamlformat_0_14_1 ocamlformat_0_14_2 ocamlformat_0_14_3 ocamlformat_0_15_0
ocamlformat_0_15_1 ocamlformat_0_16_0;

orc = callPackage ../development/compilers/orc { };

Expand Down

0 comments on commit bf010da

Please sign in to comment.