oacmlPackages.odate: make compatible with menhir ≥ 20211215

authored by Vincent Laporte and committed by Vincent Laporte f6f5188f 4931f283

+6 -3
+6 -3
pkgs/development/ocaml-modules/odate/default.nix
··· 6 pname = "odate"; 7 version = "0.6"; 8 9 - useDune2 = true; 10 - 11 - minimumOCamlVersion = "4.07"; 12 13 src = fetchFromGitHub { 14 owner = "hhugo"; ··· 20 strictDeps = true; 21 22 nativeBuildInputs = [ menhir ]; 23 24 meta = { 25 description = "Date and duration in OCaml";
··· 6 pname = "odate"; 7 version = "0.6"; 8 9 + minimalOCamlVersion = "4.07"; 10 11 src = fetchFromGitHub { 12 owner = "hhugo"; ··· 18 strictDeps = true; 19 20 nativeBuildInputs = [ menhir ]; 21 + 22 + # Ensure compatibility of v0.6 with menhir ≥ 20220210 23 + preBuild = '' 24 + substituteInPlace dune-project --replace "(using menhir 1.0)" "(using menhir 2.0)" 25 + ''; 26 27 meta = { 28 description = "Date and duration in OCaml";