coqPackages.dpdgraph: fix build with OCaml ≥ 4.08
This commit is contained in:
parent
1bf1ae3966
commit
f2eeeb83f2
@ -36,6 +36,8 @@ let params = {
|
||||
param = params.${coq.coq-version};
|
||||
in
|
||||
|
||||
let hasWarning = stdenv.lib.versionAtLeast coq.ocamlPackages.ocaml.version "4.08"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "coq${coq.coq-version}-dpdgraph-${param.version}";
|
||||
src = fetchFromGitHub {
|
||||
@ -49,6 +51,14 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ coq ]
|
||||
++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ocamlgraph ]);
|
||||
|
||||
# dpd_compute.ml uses deprecated Pervasives.compare
|
||||
# Versions prior to 0.6.5 do not have the WARN_ERR build flag
|
||||
preConfigure = stdenv.lib.optionalString hasWarning ''
|
||||
substituteInPlace Makefile.in --replace "-warn-error +a " ""
|
||||
'';
|
||||
|
||||
buildFlags = stdenv.lib.optional hasWarning "WARN_ERR=";
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user