about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEt7f3 <cadeaudeelie@gmail.com>2023-05-31 15:12:05 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2023-05-31 19:20:53 +0200
commit80ecbbd3ebc12235b3a7b34a4cf519ec770c8c65 (patch)
treebb2be207f4082e1bd2c7932c139b5554cd30c0c8
parent1cc9346a7224a1e36007bcb103c34728780ad22b (diff)
ocaml-ng.ocamlPackages.utop: 2.10.0 -> 2.12.1
-rw-r--r--pkgs/development/tools/ocaml/utop/default.nix26
1 files changed, 4 insertions, 22 deletions
diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix
index 0afaff2649470..e1a739e999e02 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 ];