nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

coqPackages.dpdgraph: fix build with OCaml ≥ 4.08

authored by

Vincent Laporte and committed by
Vincent Laporte
f2eeeb83 1bf1ae39

+10
+10
pkgs/development/coq-modules/dpdgraph/default.nix
··· 36 36 param = params.${coq.coq-version}; 37 37 in 38 38 39 + let hasWarning = stdenv.lib.versionAtLeast coq.ocamlPackages.ocaml.version "4.08"; in 40 + 39 41 stdenv.mkDerivation { 40 42 name = "coq${coq.coq-version}-dpdgraph-${param.version}"; 41 43 src = fetchFromGitHub { ··· 50 48 nativeBuildInputs = [ autoreconfHook ]; 51 49 buildInputs = [ coq ] 52 50 ++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ocamlgraph ]); 51 + 52 + # dpd_compute.ml uses deprecated Pervasives.compare 53 + # Versions prior to 0.6.5 do not have the WARN_ERR build flag 54 + preConfigure = stdenv.lib.optionalString hasWarning '' 55 + substituteInPlace Makefile.in --replace "-warn-error +a " "" 56 + ''; 57 + 58 + buildFlags = stdenv.lib.optional hasWarning "WARN_ERR="; 53 59 54 60 preInstall = '' 55 61 mkdir -p $out/bin