ocamlPackages.logs: 0.7.0 → 0.8.0

This commit is contained in:
Vincent Laporte 2025-03-19 20:03:48 +01:00
parent d0d4b99d66
commit 7460b6befb
No known key found for this signature in database
3 changed files with 16 additions and 5 deletions

View File

@ -18,6 +18,12 @@ stdenv.mkDerivation {
hash = "sha256-XuPcubt1lvnQio+km6MhmDu41NXNVXKKpzGd/Y1XzLo=";
};
# Compatibility with logs 0.8.0
postPatch = ''
substituteInPlace src/utils/dune \
--replace-warn 'logs mtime' 'logs logs.fmt mtime'
'';
strictDeps = true;
nativeBuildInputs = with ocamlPackages; [

View File

@ -27,6 +27,11 @@ buildDunePackage rec {
hash = "sha256-k4iDUJik7UTuztBw7YaFXASd8SqYMR1JgLm3JOyriGA=";
};
# Compatibility with logs 0.8.0
postPatch = ''
substituteInPlace test/unix/dune --replace-warn logs.fmt 'logs.fmt logs.threaded'
'';
minimalOCamlVersion = "4.08";
buildInputs = [

View File

@ -11,7 +11,7 @@
cmdliner,
fmt,
fmtSupport ? lib.versionAtLeast ocaml.version "4.08",
js_of_ocaml,
js_of_ocaml-compiler,
jsooSupport ? true,
lwtSupport ? true,
cmdlinerSupport ? true,
@ -22,8 +22,8 @@ let
optional_deps = [
{
pkg = js_of_ocaml;
enable_flag = "--with-js_of_ocaml";
pkg = js_of_ocaml-compiler;
enable_flag = "--with-js_of_ocaml-compiler";
enabled = jsooSupport;
}
{
@ -55,11 +55,11 @@ else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-${pname}-${version}";
version = "0.7.0";
version = "0.8.0";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
sha256 = "1jnmd675wmsmdwyb5mx5b0ac66g4c6gpv5s4mrx2j6pb0wla1x46";
hash = "sha256-mmFRQJX6QvMBIzJiO2yNYF1Ce+qQS2oNF3+OwziCNtg=";
};
nativeBuildInputs = [