giac: 1.4.9 -> 1.5.0

This commit is contained in:
Symphorien Gibol 2018-12-04 23:19:33 +01:00
parent 7c73f53d83
commit b5435d0551
3 changed files with 19 additions and 2 deletions

View File

@ -9,11 +9,11 @@ assert enableGUI -> libGLU_combined != null && xorg != null && fltk != null;
stdenv.mkDerivation rec {
name = "${attr}-${version}";
attr = if enableGUI then "giac-with-xcas" else "giac";
version = "1.4.9-59"; # TODO try to remove preCheck phase on upgrade
version = "1.5.0-21"; # TODO try to remove preCheck phase on upgrade
src = fetchurl {
url = "https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version}.tar.gz";
sha256 = "0dv5p5y6gkrsmz3xa7fw87rjyabwdwk09mqb09kb7gai9n9dgayk";
sha256 = "1b9khiv0mk2xzw1rblm2jy6qsf8y6f9k7qy15sxpb21d72hzzbl2";
};
patches = stdenv.lib.optionals (!enableGUI) [

View File

@ -0,0 +1,14 @@
--- a/src/sage/interfaces/giac.py 2018-12-08 22:11:56.285500644 +0100
+++ b/src/sage/interfaces/giac.py 2018-12-08 22:11:56.285500644 +0100
@@ -617,10 +617,7 @@
'4\n3'
sage: s='g(x):={\nx+1;\nx+2;\n}'
sage: giac(s)
- (x)->{
- x+1;
- x+2;
- }
+ (x)->[x+1,x+2]
sage: giac.g(5)
7
"""

View File

@ -79,6 +79,9 @@ stdenv.mkDerivation rec {
# https://trac.sagemath.org/ticket/25260
./patches/numpy-1.15.1.patch
# https://trac.sagemath.org/ticket/26315
./patches/giac-1.5.0.patch
# needed for ntl update
# https://trac.sagemath.org/ticket/25532
(fetchpatch {