ocamlPackages.yojson: 1.7.0 → 2.0.2

ocamlPackages.merlin: 3.4.2 → 3.8.0

ocamlPackages.merlin: 4.5 → 4.6

ocamlPackages.{atd,atdgen}: 2.9.1 → 2.10.0

ocamlPackages.elpi: fix build with atd 2.10.0

Changed files
+60 -59
pkgs
+2 -2
pkgs/development/ocaml-modules/atdgen/codec-runtime.nix
···
buildDunePackage rec {
pname = "atdgen-codec-runtime";
-
version = "2.9.1";
src = fetchurl {
url = "https://github.com/ahrefs/atd/releases/download/${version}/atdts-${version}.tbz";
-
sha256 = "sha256-OdwaUR0Ix0Oz8NDm36nIyvIRzF+r/pKgiej1fhcOmuQ=";
};
meta = {
···
buildDunePackage rec {
pname = "atdgen-codec-runtime";
+
version = "2.10.0";
src = fetchurl {
url = "https://github.com/ahrefs/atd/releases/download/${version}/atdts-${version}.tbz";
+
sha256 = "sha256-d9J0CaTp2sQbnKLp6mCDbGwYAIsioVer7ftaLSSFCZg=";
};
meta = {
+2 -2
pkgs/development/ocaml-modules/atdgen/runtime.nix
···
-
{ buildDunePackage, atdgen-codec-runtime, biniou, camlp-streams, yojson }:
buildDunePackage rec {
pname = "atdgen-runtime";
···
minimalOCamlVersion = "4.08";
-
propagatedBuildInputs = [ biniou camlp-streams yojson ];
meta = atdgen-codec-runtime.meta // {
description = "Runtime library for code generated by atdgen";
···
+
{ buildDunePackage, atdgen-codec-runtime, biniou, yojson }:
buildDunePackage rec {
pname = "atdgen-runtime";
···
minimalOCamlVersion = "4.08";
+
propagatedBuildInputs = [ biniou yojson ];
meta = atdgen-codec-runtime.meta // {
description = "Runtime library for code generated by atdgen";
+13
pkgs/development/ocaml-modules/elpi/atd_2_10.patch
···
···
+
diff --git a/src/elpi_trace_elaborator.ml b/src/elpi_trace_elaborator.ml
+
index ca13114d..093e7593 100644
+
--- a/src/elpi_trace_elaborator.ml
+
+++ b/src/elpi_trace_elaborator.ml
+
@@ -664,6 +664,6 @@ let main =
+
+
let cards = Trace.cards steps ~stack_frames ~aggregated_goal_success ~goal_text ~goal_attempts in
+
+
- let ob = Bi_outbuf.create_channel_writer stdout in
+
+ let ob = Buffer.create 17 in
+
write_trace ob cards;
+
- Bi_outbuf.flush_channel_writer ob
+
+ Buffer.output_buffer stdout ob
+3
pkgs/development/ocaml-modules/elpi/default.nix
···
pname = "elpi";
inherit (fetched) version src;
minimalOCamlVersion = "4.04";
buildInputs = [ perl ncurses ]
···
pname = "elpi";
inherit (fetched) version src;
+
patches = lib.optional (versionAtLeast version "1.16" || version == "dev")
+
./atd_2_10.patch;
+
minimalOCamlVersion = "4.04";
buildInputs = [ perl ncurses ]
+4 -5
pkgs/development/ocaml-modules/yojson/default.nix
···
-
{ lib, fetchurl, buildDunePackage, cppo, easy-format, biniou }:
buildDunePackage rec {
pname = "yojson";
-
version = "1.7.0";
-
useDune2 = true;
src = fetchurl {
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
-
sha256 = "1iich6323npvvs8r50lkr4pxxqm9mf6w67cnid7jg1j1g5gwcvv5";
};
nativeBuildInputs = [ cppo ];
-
propagatedBuildInputs = [ easy-format biniou ];
meta = with lib; {
description = "An optimized parsing and printing library for the JSON format";
···
+
{ lib, fetchurl, buildDunePackage, cppo, seq }:
buildDunePackage rec {
pname = "yojson";
+
version = "2.0.2";
src = fetchurl {
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
+
sha256 = "sha256-h2u284r3OoSilDij2jXkhXxgoUVWpgZSWxSMb9vlRhs=";
};
nativeBuildInputs = [ cppo ];
+
propagatedBuildInputs = [ seq ];
meta = with lib; {
description = "An optimized parsing and printing library for the JSON format";
+9 -14
pkgs/development/tools/ocaml/merlin/4.x.nix
···
, buildDunePackage
, yojson
, csexp
-
, result
, dot-merlin-reader
, jq
, menhir
···
}:
let
-
merlinVersion = "4.5";
hashes = {
-
"4.5-411" = "sha256:05nz6y7r91rh0lj8b6xdv3s3yknmvjc7y60v17kszgqnr887bvpn";
-
"4.5-412" = "sha256:0i5c3rfzinmwdjya7gv94zyknsm32qx9dlg472xpfqivwvnnhf1z";
-
"4.5-413" = "sha256:1sphq9anfg1qzrvj7hdcqflj6cmc1qiyfkljhng9fxnnr0i7550s";
-
"4.5-414" = "sha256:13h588kwih05zd9p3p7q528q4zc0d1l983kkvbmkxgay5d17nn1i";
};
ocamlVersionShorthand = lib.concatStrings
···
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
dune = "${dune_2}/bin/dune";
})
-
] ++ lib.optional (lib.versionOlder ocaml.version "4.12")
-
# This fixes the test-suite on macOS
-
# See https://github.com/ocaml/merlin/pull/1399
-
# Fixed in 4.4 for OCaml ≥ 4.12
-
./test.patch
-
;
strictDeps = true;
···
buildInputs = [
dot-merlin-reader
yojson
-
csexp
-
result
menhirSdk
menhirLib
];
···
, buildDunePackage
, yojson
, csexp
+
, merlin-lib
, dot-merlin-reader
, jq
, menhir
···
}:
let
+
merlinVersion = "4.6";
hashes = {
+
"4.6-412" = "sha256-isiurLeWminJQQR4oHpJPCzVk6cEmtQdX4+n3Pdka5c=";
+
"4.6-413" = "sha256-8903H4TE6F/v2Kw1XpcpdXEiLIdb9llYgt42zSR9kO4=";
+
"4.6-414" = "sha256-AuvXCjx32JQBY9vkxAd0pEjtFF6oTgrT1f9TJEEDk84=";
};
ocamlVersionShorthand = lib.concatStrings
···
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
dune = "${dune_2}/bin/dune";
})
+
];
strictDeps = true;
···
buildInputs = [
dot-merlin-reader
yojson
+
(if lib.versionAtLeast version "4.6-414"
+
then merlin-lib
+
else csexp)
menhirSdk
menhirLib
];
+4 -6
pkgs/development/tools/ocaml/merlin/default.nix
···
buildDunePackage rec {
pname = "merlin";
-
version = "3.4.2";
src = fetchurl {
-
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-v${version}.tbz";
-
sha256 = "e1b7b897b11119d92995c558530149fd07bd67a4aaf140f55f3c4ffb5e882a81";
};
-
useDune2 = true;
-
-
minimumOCamlVersion = "4.02.3";
patches = [
(substituteAll {
···
buildDunePackage rec {
pname = "merlin";
+
version = "3.8.0";
src = fetchurl {
+
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-${version}.tbz";
+
sha256 = "sha256-wmBGNwXL3BduF4o1sUXtAOUHJ4xmMvsWAxl/QdNj/28=";
};
+
minimalOCamlVersion = "4.02.3";
patches = [
(substituteAll {
+6 -10
pkgs/development/tools/ocaml/merlin/dot-merlin-reader.nix
···
-
{ lib, fetchurl, yojson, csexp, result, buildDunePackage }:
buildDunePackage rec {
pname = "dot-merlin-reader";
-
version = "4.1";
-
useDune2 = true;
-
-
minimumOCamlVersion = "4.06";
-
src = fetchurl {
-
url = "https://github.com/ocaml/merlin/releases/download/v${version}/dot-merlin-reader-v${version}.tbz";
-
sha256 = "14a36d6fb8646a5df4530420a7861722f1a4ee04753717947305e3676031e7cd";
-
};
-
buildInputs = [ yojson csexp result ];
meta = with lib; {
description = "Reads config files for merlin";
···
+
{ lib, fetchurl, yojson, csexp, buildDunePackage, merlin-lib, merlin }:
buildDunePackage rec {
pname = "dot-merlin-reader";
+
inherit (merlin) version src;
+
minimalOCamlVersion = "4.06";
+
buildInputs = if lib.versionAtLeast version "4.6-414"
+
then [ merlin-lib ]
+
else [ yojson csexp ];
meta = with lib; {
description = "Reads config files for merlin";
+14
pkgs/development/tools/ocaml/merlin/lib.nix
···
···
+
{ lib, buildDunePackage, merlin, csexp }:
+
+
buildDunePackage {
+
pname = "merlin-lib";
+
inherit (merlin) version src;
+
+
minimalOCamlVersion = "4.14";
+
+
propagatedBuildInputs = [ csexp ];
+
+
meta = merlin.meta // {
+
description = "Merlin’s libraries";
+
};
+
}
-19
pkgs/development/tools/ocaml/merlin/test.patch
···
-
commit 282eed37f39ff216add8d53766fd59f3737eb87f
-
Author: Vincent Laporte <Vincent.Laporte@gmail.com>
-
Date: Thu Nov 4 06:24:07 2021 +0100
-
-
Ignore dune stderr in tests
-
-
diff --git a/tests/test-dirs/document/src-documentation.t/run.t b/tests/test-dirs/document/src-documentation.t/run.t
-
index 2c9e1419..4f4c4327 100644
-
--- a/tests/test-dirs/document/src-documentation.t/run.t
-
+++ b/tests/test-dirs/document/src-documentation.t/run.t
-
@@ -42,7 +42,7 @@ documentation for the non-last defined value (in the same file) is show
-
> jq '.value'
-
" List reversal. "
-
-
- $ dune build --root=. ./doc.exe
-
+ $ dune build --root=. ./doc.exe 2> /dev/null
-
$ cat >.merlin <<EOF
-
> B _build/default/.doc.eobjs/byte
-
> S .
···
+3 -1
pkgs/top-level/ocaml-packages.nix
···
menhirSdk = callPackage ../development/ocaml-modules/menhir/sdk.nix { };
merlin =
-
if lib.versionAtLeast ocaml.version "4.11"
then callPackage ../development/tools/ocaml/merlin/4.x.nix { }
else callPackage ../development/tools/ocaml/merlin { };
merlin-extend = callPackage ../development/ocaml-modules/merlin-extend { };
dot-merlin-reader = callPackage ../development/tools/ocaml/merlin/dot-merlin-reader.nix { };
···
menhirSdk = callPackage ../development/ocaml-modules/menhir/sdk.nix { };
merlin =
+
if lib.versionAtLeast ocaml.version "4.12"
then callPackage ../development/tools/ocaml/merlin/4.x.nix { }
else callPackage ../development/tools/ocaml/merlin { };
merlin-extend = callPackage ../development/ocaml-modules/merlin-extend { };
+
+
merlin-lib = callPackage ../development/tools/ocaml/merlin/lib.nix { };
dot-merlin-reader = callPackage ../development/tools/ocaml/merlin/dot-merlin-reader.nix { };