Updating coq and ssreflect to patch level 4.

svn path=/nixpkgs/trunk/; revision=34146
This commit is contained in:
Russell O'Connor 2012-05-16 22:04:02 +00:00
parent 503576d277
commit cfc8538326
3 changed files with 51 additions and 9 deletions

View File

@ -4,7 +4,7 @@
{stdenv, fetchurl, ocaml, findlib, camlp5, lablgtk, ncurses}:
let
version = "8.3pl3";
version = "8.3pl4";
in
stdenv.mkDerivation {
@ -12,7 +12,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "http://coq.inria.fr/V${version}/files/coq-${version}.tar.gz";
sha256 = "0ivrafwr4p8pklb9wfq3zyai19xdk05xr3q16xqk4q9pfad9w9dg";
sha256 = "17d3lmchmqir1rawnr52g78srg4wkd7clzpzfsivxc4y1zp6rwkr";
};
buildInputs = [ ocaml findlib camlp5 ncurses lablgtk ];
@ -58,5 +58,6 @@ stdenv.mkDerivation {
'';
homepage = "http://coq.inria.fr";
license = "LGPL";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@ -2,11 +2,11 @@
# - coq needs to be invoked with the explicit path to the ssreflect theory
# e.g. coqide -R ~/.nix-profile/lib/coq/user-contrib/ ''
{stdenv, fetchurl, ocaml, camlp5, coq}:
{stdenv, fetchurl, ocaml, camlp5, coq, makeWrapper}:
let
pname = "ssreflect";
version = "1.3pl1";
version = "1.3pl4";
name = "${pname}-${version}";
webpage = http://www.msr-inria.inria.fr/Projects/math-components;
in
@ -16,22 +16,29 @@ stdenv.mkDerivation {
src = fetchurl {
url = "${webpage}/${name}.tar.gz";
sha256 = "0ykrhqb68aanl5d4dmn0vnx8m34gg0jsbdhwx2852rqi7r00b9ri";
sha256 = "1ha3iiqq79pgll5ra9z0xdi3d3dr3wb9f5vsm4amy884l5anva02";
};
buildInputs = [ ocaml camlp5 coq ];
buildInputs = [ ocaml camlp5 coq makeWrapper ];
patches = [ ./static.patch ];
# this fails
/*
postBuild = ''
cd src
coqmktop -ide -opt ssreflect.cmx -o ../bin/ssrcoqide
cd ..
'';
*/
installPhase = ''
COQLIB=$out/lib/coq make -f Makefile.coq install -e
mkdir -p $out/bin
cp bin/* $out/bin
for i in $out/bin/*; do
wrapProgram "$i" \
--add-flags "-R" \
--add-flags "$out/lib/coq/user-contrib/Ssreflect" \
--add-flags "Ssreflect"
done
'';
meta = {
@ -43,5 +50,6 @@ stdenv.mkDerivation {
'';
homepage = webpage;
license = "CeCILL B FREE SOFTWARE LICENSE or CeCILL FREE SOFTWARE LICENSE";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@ -0,0 +1,33 @@
--- ssreflect1.3pl4/Make (revision 3823)
+++ ssreflect1.3pl4/Make (working copy)
@@ -1,18 +1,18 @@
## Uncomment for static linking
## <static>
-#
-#-custom "$(COQBIN)coqmktop -opt -o bin/ssrcoq src/ssreflect.cmx" "src/ssreflect.cmx" bin/ssrcoq
-#-custom "$(COQBIN)coqmktop -o bin/ssrcoq.byte src/ssreflect.cmo" "src/ssreflect.cmo bin/ssrcoq" bin/ssrcoq.byte
-#-custom "$(SSRCOQ) $(COQFLAGS) -compile $*" "%.v $(SSRCOQ)" "%.vo"
-#SSRCOQ = bin/ssrcoq
-#
+
+-custom "$(COQBIN)coqmktop -opt -o bin/ssrcoq src/ssreflect.cmx" "src/ssreflect.cmx" bin/ssrcoq
+-custom "$(COQBIN)coqmktop -o bin/ssrcoq.byte src/ssreflect.cmo" "src/ssreflect.cmo bin/ssrcoq" bin/ssrcoq.byte
+-custom "$(SSRCOQ) $(COQFLAGS) -compile $*" "%.v $(SSRCOQ)" "%.vo"
+SSRCOQ = bin/ssrcoq
+
## </static>
## Uncomment for dynamic linking
## <dynamic>
-
--I src
-
+#
+#-I src
+#
## </dynamic>
## What follows should be left untouched by the final user of ssreflect
Common subdirectories: old/src and new/src
Common subdirectories: old/test and new/test
Common subdirectories: old/theories and new/theories