ocamlPackages.bigstring: use Dune 3 & fix for OCaml 5
This commit is contained in:
parent
213349f3ad
commit
8ede16564f
|
@ -1,12 +1,16 @@
|
||||||
{ lib, fetchFromGitHub, buildDunePackage }:
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "bigstring";
|
pname = "bigstring";
|
||||||
version = "0.3";
|
version = "0.3";
|
||||||
|
|
||||||
useDune2 = true;
|
duneVersion = "3";
|
||||||
|
minimalOCamlVersion = "4.03";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.03";
|
# Ensure compatibility with OCaml ≥ 5.0
|
||||||
|
preConfigure = lib.optional (lib.versionAtLeast ocaml.version "4.08") ''
|
||||||
|
substituteInPlace src/dune --replace '(libraries bytes bigarray)' ""
|
||||||
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "c-cube";
|
owner = "c-cube";
|
||||||
|
|
Loading…
Reference in a new issue