mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
coqPackages_8_14.coq-elpi: fix by using old camlp5
This commit is contained in:
parent
d6ddaa4ad6
commit
409d682a57
@ -12,6 +12,9 @@
|
||||
else if lib.versionAtLeast ocaml.version "4.07" then "1.15.2" else "1.14.1"
|
||||
}:
|
||||
|
||||
let p5 = camlp5; in
|
||||
let camlp5 = p5.override { legacy = true; }; in
|
||||
|
||||
let fetched = coqPackages.metaFetch ({
|
||||
release."1.16.5".sha256 = "sha256-tKX5/cVPoBeHiUe+qn7c5FIRYCwY0AAukN7vSd/Nz9A=";
|
||||
release."1.15.2".sha256 = "sha256-XgopNP83POFbMNyl2D+gY1rmqGg03o++Ngv3zJfCn2s=";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, perl, makeWrapper
|
||||
, rresult, bos, ocaml_pcre, re, camlp-streams
|
||||
, legacy ? false
|
||||
}:
|
||||
|
||||
if lib.versionOlder ocaml.version "4.02"
|
||||
@ -7,7 +8,7 @@ then throw "camlp5 is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
let params =
|
||||
if lib.versionAtLeast ocaml.version "4.12"
|
||||
if lib.versionAtLeast ocaml.version "4.12" && !legacy
|
||||
then rec {
|
||||
version = "8.00.05";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user