diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix index 0afaff264947..e1a739e999e0 100644 --- a/pkgs/development/tools/ocaml/utop/default.nix +++ b/pkgs/development/tools/ocaml/utop/default.nix @@ -3,35 +3,17 @@ , zed, logs, lwt, react, lwt_react }: -let - switch = - if lib.versionAtLeast ocaml.version "4.08" - then - { - version = "2.10.0"; - sha256 = "sha256-R10WovnqYcYCrDJnPuIQx2zHaPchSYfXDAaVMsJ4LQA="; - duneVersion = "3"; - propagatedBuildInputs = [ findlib lambda-term zed logs ]; - } - else - { - version = "2.9.2"; - sha256 = "sha256-kvFBCe69TRQIWvZV47SH7ISus9k8afGRw5WLKzKqw08="; - duneVersion = "2"; - propagatedBuildInputs = [ lambda-term ]; - }; -in - buildDunePackage rec { pname = "utop"; - inherit (switch) version duneVersion propagatedBuildInputs; + version = "2.12.1"; + propagatedBuildInputs = [ findlib lambda-term zed logs ]; - minimalOCamlVersion = "4.03"; + minimalOCamlVersion = "4.08"; src = fetchurl { url = "https://github.com/ocaml-community/utop/releases/download/${version}/utop-${version}.tbz"; - sha256 = switch.sha256; + sha256 = "sha256-Z6S3pUE4RY5Q7keRUVSQuzkikewWgM+sRLgcR+8bIlM="; }; nativeBuildInputs = [ makeWrapper cppo ];