diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix b/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix index afd7ae8807ba..5686e33f9b73 100644 --- a/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix +++ b/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix @@ -23,6 +23,8 @@ let src = "0.17.0" = "0f1lxp697yq61z8gqxjjaqd2ns8fd1vjfggn55x0gh9dx098p138"; "0.18.0" = "0571kzmb1h03qj74090n3mg8wfbh29qqrkdjkai6rnl5chll86lq"; "0.19.0" = "0ihgwl7d489g938m1jvgx8azdgq9f5np5mzqwwya797hx2m4dz32"; + "0.20.0" = "sha256-JtmNCgwjbCyUE4bWqdH5Nc2YSit+rekwS43DcviIfgk="; + "0.20.1" = "sha256-fTpRZFQW+ngoc0T6A69reEUAZ6GmHkeQvxspd5zRAjU="; }."${version}"; }; ocamlPackages = @@ -47,7 +49,26 @@ buildDunePackage { useDune2 = true; buildInputs = - if lib.versionAtLeast version "0.19.0" + if lib.versionAtLeast version "0.20.0" + then [ + base + cmdliner + dune-build-info + either + fix + fpath + menhir + menhirLib + menhirSdk + ocaml-version + ocp-indent + (if version == "0.20.0" then odoc-parser.override { version = "0.9.0"; } else odoc-parser) + re + stdio + uuseg + uutf + ] + else if lib.versionAtLeast version "0.19.0" then [ base cmdliner @@ -62,7 +83,7 @@ buildDunePackage { menhirSdk ocp-indent dune-build-info - odoc-parser + (odoc-parser.override { version = "0.9.0"; }) ] else if lib.versionAtLeast version "0.18.0" then [ |