nixpkgs/pkgs/development/coq-modules/ssreflect/generic.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, coq, ncurses, which
, graphviz, withDoc ? false
2015-05-28 15:09:05 +01:00
, src, patches ? []
}:
2015-04-24 17:51:05 +01:00
stdenv.mkDerivation {
name = "coq-ssreflect-1.6-${coq.coq-version}";
2015-04-24 17:51:05 +01:00
2015-05-28 15:09:05 +01:00
inherit src;
2015-04-24 17:51:05 +01:00
2015-05-28 15:09:05 +01:00
nativeBuildInputs = stdenv.lib.optionals withDoc [ graphviz ];
buildInputs = [ coq.ocaml coq.camlp5 ncurses which ];
2015-04-24 17:51:05 +01:00
propagatedBuildInputs = [ coq ];
enableParallelBuilding = true;
2015-05-28 15:09:05 +01:00
inherit patches;
2015-04-24 17:51:05 +01:00
preBuild = ''
2016-01-04 21:12:28 +00:00
patchShebangs etc/utils/ssrcoqdep
cd mathcomp/ssreflect
export COQBIN=${coq}/bin/
2015-04-24 17:51:05 +01:00
'';
installPhase = ''
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
'';
2015-04-24 17:51:05 +01:00
postInstall = ''
# mkdir -p $out/bin
# cp -p bin/ssrcoq $out/bin
# cp -p bin/ssrcoq.byte $out/bin
2015-05-28 15:09:05 +01:00
'' + stdenv.lib.optionalString withDoc ''
mkdir -p $out/share/doc/coq/${coq.coq-version}/user-contrib/mathcomp/ssreflect/
cp -r html $out/share/doc/coq/${coq.coq-version}/user-contrib/mathcomp/ssreflect/
2015-04-24 17:51:05 +01:00
'';
meta = with stdenv.lib; {
homepage = http://ssr.msr-inria.inria.fr/;
license = licenses.cecill-b;
maintainers = with maintainers; [ vbgl jwiegley ];
platforms = coq.meta.platforms;
};
}