Skip to content

Commit

Permalink
ocamlPackages.bigstring: use Dune 3 & fix for OCaml 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Mar 22, 2023
1 parent 213349f commit 8ede165
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/ocaml-modules/bigstring/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 8ede165

Please sign in to comment.