mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 13:27:36 +00:00
oacmlPackages.odate: make compatible with menhir ≥ 20211215
This commit is contained in:
parent
4931f283f7
commit
f6f5188f75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user