From 488d73f0455cc65314a0b0cfc446ea6bd481257f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 2 Oct 2020 22:14:02 +0200 Subject: [PATCH] coqPackages.bignums: do not depend on camlp5 for recent versions of Coq --- pkgs/development/coq-modules/bignums/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/coq-modules/bignums/default.nix b/pkgs/development/coq-modules/bignums/default.nix index 88d7e461a317..7246382c9aed 100644 --- a/pkgs/development/coq-modules/bignums/default.nix +++ b/pkgs/development/coq-modules/bignums/default.nix @@ -43,7 +43,9 @@ stdenv.mkDerivation { inherit (param) rev sha256; }; - buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ]; + buildInputs = with coq.ocamlPackages; [ ocaml findlib coq ] + ++ stdenv.lib.optional (!stdenv.lib.versionAtLeast coq.coq-version "8.10") camlp5 + ; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];