ocamlPackages.bigstring: use Dune 3 & fix for OCaml 5

This commit is contained in:
Vincent Laporte 2023-03-22 06:12:11 +01:00
parent 213349f3ad
commit 8ede16564f
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,12 +1,16 @@
{ lib, fetchFromGitHub, buildDunePackage }:
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:
buildDunePackage rec {
pname = "bigstring";
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 {
owner = "c-cube";