coqPackages.interval: make bignums optional and propagated

This commit is contained in:
Vincent Laporte 2017-11-13 07:29:27 +00:00
parent 985cfa7a8a
commit d7e84159f8
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, which, coq, coquelicot, flocq, mathcomp, bignums }:
{ stdenv, fetchurl, which, coq, coquelicot, flocq, mathcomp
, bignums ? null }:
let param =
if stdenv.lib.versionAtLeast coq.coq-version "8.5"
@ -21,8 +22,8 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [ which ];
buildInputs = [ coq bignums ];
propagatedBuildInputs = [ coquelicot flocq mathcomp ];
buildInputs = [ coq ];
propagatedBuildInputs = [ bignums coquelicot flocq mathcomp ];
configurePhase = "./configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Interval";
buildPhase = "./remake";