ocamlPackages: a few fixes for OCaml 5.3 (#377543)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildDunePackage,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
bytestring,
|
||||
config,
|
||||
libc,
|
||||
@@ -20,6 +21,11 @@ buildDunePackage rec {
|
||||
hash = "sha256-YWJCPokY1A7TGqCGoxJl14oKDVeMNybEEB7KiK92WSo=";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = "https://github.com/riot-ml/gluon/commit/b29c34d04ea05d7721a229c35132320e796ed4b2.patch";
|
||||
hash = "sha256-XuzyoteQAgEs93WrgHTWT1I+hIJAiGiJ4XAiLtnEYtw=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
config
|
||||
];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
self,
|
||||
bash,
|
||||
fetchpatch,
|
||||
fzf,
|
||||
lib,
|
||||
openssl,
|
||||
@@ -211,6 +212,10 @@ with self;
|
||||
ctypes-foreign
|
||||
openssl
|
||||
];
|
||||
patches = fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/async_ssl/no-incompatible-pointer-types-017.patch";
|
||||
hash = "sha256-bpfIi97/b1hIwsFzsmhFAZV1w8CdaMxXoi72ScSYMjY=";
|
||||
};
|
||||
};
|
||||
|
||||
async_unix = janePackage {
|
||||
@@ -498,6 +503,13 @@ with self;
|
||||
patchShebangs unix_pseudo_terminal/src/discover.sh
|
||||
'';
|
||||
doCheck = false; # command_validate_parsing.exe is not specified in test build deps
|
||||
|
||||
# Compatibility with OCaml 5.3
|
||||
patches = lib.optional (lib.versionAtLeast ocaml.version "5.3") (fetchpatch {
|
||||
url = "https://github.com/janestreet/core_unix/commit/ebce389ac68e098f542e34400e114ac992f415af.patch";
|
||||
includes = [ "bigstring_unix/src/bigstring_unix_stubs.c" ];
|
||||
hash = "sha256-FGg2zlyp3aZFu1VeFdm7pgSPiW0HAkLYgMGTj+tqju8=";
|
||||
});
|
||||
};
|
||||
|
||||
csvfields = janePackage {
|
||||
@@ -1545,8 +1557,8 @@ with self;
|
||||
// (
|
||||
if lib.versionAtLeast ocaml.version "5.3" then
|
||||
{
|
||||
version = "0.17.1";
|
||||
hash = "sha256-kcGXqO1kFYds8KwLvpIQ7OKhqnp6JZs8WYYLi7o/nBw=";
|
||||
version = "0.17.2";
|
||||
hash = "sha256-AQJSdKtF6p/aG5Lx8VHVEOsisH8ep+iiml6DtW+Hdik=";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -78,6 +78,10 @@ let
|
||||
version = "8.06.14";
|
||||
sha256 = "sha256-eVSQetk+i3KObjHfsvnD615cIsq3aZ7IxycX42cuPIU=";
|
||||
};
|
||||
"5.3" = mkNewParam {
|
||||
version = "8.06.15";
|
||||
sha256 = "sha256-I/y5qr5sasCtlrwxL/Lex79rg0o4tzDMBmQY7MdpU2w=";
|
||||
};
|
||||
};
|
||||
param =
|
||||
params.${lib.versions.majorMinor ocaml.version}
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
lib,
|
||||
ocaml,
|
||||
version ?
|
||||
if lib.versionAtLeast ocaml.version "5.2" then
|
||||
if lib.versionAtLeast ocaml.version "5.3" then
|
||||
"1.22.0"
|
||||
else if lib.versionAtLeast ocaml.version "5.2" then
|
||||
"1.21.0"
|
||||
else if lib.versionAtLeast ocaml.version "4.14" then
|
||||
"1.18.0"
|
||||
@@ -24,6 +26,11 @@
|
||||
let
|
||||
params =
|
||||
{
|
||||
"1.22.0" = {
|
||||
name = "lsp";
|
||||
minimalOCamlVersion = "5.2";
|
||||
sha256 = "sha256-UZ3DV30V3CIQ3vpYBIGnQ1eRGNUGk7aRuxDLyCA/tYE=";
|
||||
};
|
||||
"1.21.0" = {
|
||||
name = "lsp";
|
||||
minimalOCamlVersion = "5.2";
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
ocamlformat-rpc-lib,
|
||||
ocaml,
|
||||
version ?
|
||||
if lib.versionAtLeast ocaml.version "5.2" then
|
||||
if lib.versionAtLeast ocaml.version "5.3" then
|
||||
"1.22.0"
|
||||
else if lib.versionAtLeast ocaml.version "5.2" then
|
||||
"1.21.0"
|
||||
else if lib.versionAtLeast ocaml.version "4.14" then
|
||||
"1.18.0"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
buildDunePackage,
|
||||
base,
|
||||
stdio,
|
||||
@@ -21,6 +22,11 @@ buildDunePackage rec {
|
||||
hash = "sha256-22+dZb3MC1W5Qvsz3+IHV1/XiGCRmJHTH+6IW2QX2hU=";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = "https://github.com/dakk/secp256k1-ml/commit/9bde90a401746dcecdab68a2fdb95659d16a3022.patch";
|
||||
hash = "sha256-QndtZJtPKPjuv84jDmXc9Q/xGLb/mNUGL4AvRecSFlQ=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
base
|
||||
stdio
|
||||
|
||||
@@ -793,7 +793,7 @@ let
|
||||
then import ../development/ocaml-modules/janestreet/0.17.nix
|
||||
{
|
||||
inherit self;
|
||||
inherit (pkgs) bash fzf lib openssl zstd;
|
||||
inherit (pkgs) bash fetchpatch fzf lib openssl zstd;
|
||||
}
|
||||
else if lib.versionOlder "4.13.1" ocaml.version
|
||||
then import ../development/ocaml-modules/janestreet/0.16.nix {
|
||||
|
||||
Reference in New Issue
Block a user