oacmlPackages.odate: make compatible with menhir ≥ 20211215

This commit is contained in:
Vincent Laporte 2022-05-29 15:05:10 +02:00 committed by Vincent Laporte
parent 4931f283f7
commit f6f5188f75

View file

@ -6,9 +6,7 @@ buildDunePackage rec {
pname = "odate";
version = "0.6";
useDune2 = true;
minimumOCamlVersion = "4.07";
minimalOCamlVersion = "4.07";
src = fetchFromGitHub {
owner = "hhugo";
@ -21,6 +19,11 @@ buildDunePackage rec {
nativeBuildInputs = [ menhir ];
# Ensure compatibility of v0.6 with menhir ≥ 20220210
preBuild = ''
substituteInPlace dune-project --replace "(using menhir 1.0)" "(using menhir 2.0)"
'';
meta = {
description = "Date and duration in OCaml";
inherit (src.meta) homepage;