Updating coq and ssreflect to patch level 4.
svn path=/nixpkgs/trunk/; revision=34146
This commit is contained in:
parent
503576d277
commit
cfc8538326
@ -4,7 +4,7 @@
|
|||||||
{stdenv, fetchurl, ocaml, findlib, camlp5, lablgtk, ncurses}:
|
{stdenv, fetchurl, ocaml, findlib, camlp5, lablgtk, ncurses}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "8.3pl3";
|
version = "8.3pl4";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://coq.inria.fr/V${version}/files/coq-${version}.tar.gz";
|
url = "http://coq.inria.fr/V${version}/files/coq-${version}.tar.gz";
|
||||||
sha256 = "0ivrafwr4p8pklb9wfq3zyai19xdk05xr3q16xqk4q9pfad9w9dg";
|
sha256 = "17d3lmchmqir1rawnr52g78srg4wkd7clzpzfsivxc4y1zp6rwkr";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib camlp5 ncurses lablgtk ];
|
buildInputs = [ ocaml findlib camlp5 ncurses lablgtk ];
|
||||||
@ -58,5 +58,6 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
homepage = "http://coq.inria.fr";
|
homepage = "http://coq.inria.fr";
|
||||||
license = "LGPL";
|
license = "LGPL";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
# - coq needs to be invoked with the explicit path to the ssreflect theory
|
# - coq needs to be invoked with the explicit path to the ssreflect theory
|
||||||
# e.g. coqide -R ~/.nix-profile/lib/coq/user-contrib/ ''
|
# e.g. coqide -R ~/.nix-profile/lib/coq/user-contrib/ ''
|
||||||
|
|
||||||
{stdenv, fetchurl, ocaml, camlp5, coq}:
|
{stdenv, fetchurl, ocaml, camlp5, coq, makeWrapper}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "ssreflect";
|
pname = "ssreflect";
|
||||||
version = "1.3pl1";
|
version = "1.3pl4";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
webpage = http://www.msr-inria.inria.fr/Projects/math-components;
|
webpage = http://www.msr-inria.inria.fr/Projects/math-components;
|
||||||
in
|
in
|
||||||
@ -16,22 +16,29 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/${name}.tar.gz";
|
url = "${webpage}/${name}.tar.gz";
|
||||||
sha256 = "0ykrhqb68aanl5d4dmn0vnx8m34gg0jsbdhwx2852rqi7r00b9ri";
|
sha256 = "1ha3iiqq79pgll5ra9z0xdi3d3dr3wb9f5vsm4amy884l5anva02";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml camlp5 coq ];
|
buildInputs = [ ocaml camlp5 coq makeWrapper ];
|
||||||
|
|
||||||
|
patches = [ ./static.patch ];
|
||||||
|
|
||||||
# this fails
|
|
||||||
/*
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cd src
|
cd src
|
||||||
coqmktop -ide -opt ssreflect.cmx -o ../bin/ssrcoqide
|
coqmktop -ide -opt ssreflect.cmx -o ../bin/ssrcoqide
|
||||||
|
cd ..
|
||||||
'';
|
'';
|
||||||
*/
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
COQLIB=$out/lib/coq make -f Makefile.coq install -e
|
COQLIB=$out/lib/coq make -f Makefile.coq install -e
|
||||||
mkdir -p $out/bin
|
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 = {
|
meta = {
|
||||||
@ -43,5 +50,6 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
homepage = webpage;
|
homepage = webpage;
|
||||||
license = "CeCILL B FREE SOFTWARE LICENSE or CeCILL FREE SOFTWARE LICENSE";
|
license = "CeCILL B FREE SOFTWARE LICENSE or CeCILL FREE SOFTWARE LICENSE";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
33
pkgs/applications/science/logic/ssreflect/static.patch
Normal file
33
pkgs/applications/science/logic/ssreflect/static.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user