Unverified Commit 27bdf9fd authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

ocamlPackages.logs: 0.7.0 → 0.8.0 (#391377)

parents 035d482b 7460b6be
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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; [
+5 −0
Original line number Diff line number Diff line
@@ -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 = [
+5 −5
Original line number Diff line number Diff line
@@ -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 = [