2017-01-28 06:35:57 +00:00
|
|
|
{ stdenv, fetchurl, coq, ncurses, which
|
2017-01-25 07:41:25 +00:00
|
|
|
, graphviz, withDoc ? false
|
2016-12-22 18:34:56 +00:00
|
|
|
, src, name
|
2015-05-28 19:31:12 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2016-12-22 18:34:56 +00:00
|
|
|
inherit name;
|
2015-05-28 19:31:12 +01:00
|
|
|
inherit src;
|
|
|
|
|
2015-12-20 19:12:23 +00:00
|
|
|
nativeBuildInputs = stdenv.lib.optionals withDoc [ graphviz ];
|
2017-01-25 07:41:25 +00:00
|
|
|
buildInputs = [ coq.ocaml coq.findlib coq.camlp5 ncurses which ];
|
2017-01-28 06:35:57 +00:00
|
|
|
propagatedBuildInputs = [ coq ];
|
2015-05-28 19:31:12 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildFlags = stdenv.lib.optionalString withDoc "doc";
|
|
|
|
|
2015-12-20 19:12:23 +00:00
|
|
|
preBuild = ''
|
2018-04-24 15:21:21 +01:00
|
|
|
patchShebangs etc/utils/ssrcoqdep || true
|
2015-12-20 19:12:23 +00:00
|
|
|
cd mathcomp
|
|
|
|
export COQBIN=${coq}/bin/
|
|
|
|
'';
|
2015-05-28 19:31:12 +01:00
|
|
|
|
2015-12-20 19:12:23 +00:00
|
|
|
installPhase = ''
|
|
|
|
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
|
|
|
|
'' + stdenv.lib.optionalString withDoc ''
|
2015-05-28 19:31:12 +01:00
|
|
|
make -f Makefile.coq install-doc DOCDIR=$out/share/coq/${coq.coq-version}/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://ssr.msr-inria.inria.fr/;
|
|
|
|
license = licenses.cecill-b;
|
|
|
|
maintainers = [ maintainers.vbgl maintainers.jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
passthru = {
|
2018-04-24 15:21:21 +01:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" ];
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
}
|