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 6 pname = "odate"; 7 7 version = "0.6"; 8 8 9 - useDune2 = true; 10 - 11 - minimumOCamlVersion = "4.07"; 9 + minimalOCamlVersion = "4.07"; 12 10 13 11 src = fetchFromGitHub { 14 12 owner = "hhugo"; ··· 20 18 strictDeps = true; 21 19 22 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 + ''; 23 26 24 27 meta = { 25 28 description = "Date and duration in OCaml";