Unverified Commit 655e44a9 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

ocamlPackages.fmt: 0.9.0 -> 0.10.0 (#388870)

parents a8db692d 545829c5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch,
  ocamlPackages,
}:

@@ -18,6 +19,14 @@ stdenv.mkDerivation {
    hash = "sha256-XuPcubt1lvnQio+km6MhmDu41NXNVXKKpzGd/Y1XzLo=";
  };

  # Compatibility with fmt 0.10.0
  patches = [
    (fetchpatch {
      url = "https://gitlab.inria.fr/ACG/dev/ACGtk/-/commit/613454b376d10974f539ab398a269be061c5bc9c.patch";
      hash = "sha256-l/V8oEgntnFtrhpTQSk7PkpaX+dBq4izG/tloCQRbDY=";
    })
  ];

  # Compatibility with logs 0.8.0
  postPatch = ''
    substituteInPlace src/utils/dune \
+2 −2
Original line number Diff line number Diff line
@@ -14,12 +14,12 @@ if lib.versionOlder ocaml.version "4.08" then
else

  stdenv.mkDerivation rec {
    version = "0.9.0";
    version = "0.10.0";
    pname = "ocaml${ocaml.version}-fmt";

    src = fetchurl {
      url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
      sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE=";
      sha256 = "sha256-eDgec+FW2F85LzfkKFqsmYd3MWWZsBIXMhlXT3xdKZc=";
    };

    nativeBuildInputs = [