ocaml-ng.ocamlPackages.utop: 2.10.0 -> 2.12.1
This commit is contained in:
parent
1cc9346a72
commit
80ecbbd3eb
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue