tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
giac, giac-with-xcas: 1.9.0-29 -> 1.9.0-43
Mauricio Collares
2 years ago
19bf4ba0
51541df9
+24
-10
2 changed files
expand all
collapse all
unified
split
pkgs
applications
science
math
giac
default.nix
increase-pari-stack-size.patch
+6
-10
pkgs/applications/science/math/giac/default.nix
···
9
10
stdenv.mkDerivation rec {
11
pname = "giac${lib.optionalString enableGUI "-with-xcas"}";
12
-
version = "1.9.0-29"; # TODO try to remove preCheck phase on upgrade
13
14
src = fetchurl {
15
url = "https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version}.tar.gz";
16
-
sha256 = "sha256-9jUVcsrV8jMfqrmnymZ4vIaWlabF9ppCuq7VDlZ5Cw4=";
17
};
18
19
patches = [
···
27
# the compiler rightfully warns about (with an error nowadays).
28
(fetchpatch {
29
name = "fix-string-compiler-error.patch";
30
-
url = "https://salsa.debian.org/science-team/giac/-/raw/08cb807ef41f5216b712928886ebf74f69d5ddf6/debian/patches/fix-string-compiler-error.patch";
31
-
sha256 = "sha256-K4KAJY1F9Y4DTZFmVEOCXTnxBmHo4//3A10UR3Wlliw=";
32
})
33
34
-
# increase pari stack size for test chk_fhan4
35
-
(fetchpatch {
36
-
name = "increase-pari-stack-size.patch";
37
-
url = "https://salsa.debian.org/science-team/giac/-/raw/08cb807ef41f5216b712928886ebf74f69d5ddf6/debian/patches/increase-pari-size.patch";
38
-
sha256 = "sha256-764P0IJ7ndURap7hotOmYJK0wAhYdqMbQNOnhJxVNt0=";
39
-
})
40
] ++ lib.optionals (!enableGUI) [
41
# when enableGui is false, giac is compiled without fltk. That
42
# means some outputs differ in the make check. Patch around this:
···
9
10
stdenv.mkDerivation rec {
11
pname = "giac${lib.optionalString enableGUI "-with-xcas"}";
12
+
version = "1.9.0-43"; # TODO try to remove preCheck phase on upgrade
13
14
src = fetchurl {
15
url = "https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version}.tar.gz";
16
+
sha256 = "sha256-466jB8ZRqHkU5XCY+j0Fh7Dq/mMaOu10rHECKbtNGrs=";
17
};
18
19
patches = [
···
27
# the compiler rightfully warns about (with an error nowadays).
28
(fetchpatch {
29
name = "fix-string-compiler-error.patch";
30
+
url = "https://salsa.debian.org/science-team/giac/-/raw/9ca8dbf4bb16d9d96948aa4024326d32485d7917/debian/patches/fix-string-compiler-error.patch";
31
+
sha256 = "sha256-r+M+9MRPRqhHcdhYWI6inxyNvWbXUbBcPCeDY7aulvk=";
32
})
33
34
+
# increase pari stack size for test chk_fhan{4,6}
35
+
./increase-pari-stack-size.patch
0
0
0
0
36
] ++ lib.optionals (!enableGUI) [
37
# when enableGui is false, giac is compiled without fltk. That
38
# means some outputs differ in the make check. Patch around this:
+18
pkgs/applications/science/math/giac/increase-pari-stack-size.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff -ur a/check/chk_fhan4 b/check/chk_fhan4
2
+
--- a/check/chk_fhan4 2018-03-13 19:27:11.000000000 +0100
3
+
+++ b/check/chk_fhan4 2023-05-20 16:31:30.349063063 +0200
4
+
@@ -1,4 +1,5 @@
5
+
#! /bin/sh
6
+
unset LANG
7
+
+export PARI_SIZE=2048000
8
+
../src/icas TP04-sol.cas > TP04.tst
9
+
diff TP04.tst TP04-sol.cas.out1
10
+
diff -ur a/check/chk_fhan6 b/check/chk_fhan6
11
+
--- a/check/chk_fhan6 2018-03-13 19:27:21.000000000 +0100
12
+
+++ b/check/chk_fhan6 2023-05-20 16:32:04.199407065 +0200
13
+
@@ -1,4 +1,5 @@
14
+
#! /bin/sh
15
+
unset LANG
16
+
+export PARI_SIZE=2048000
17
+
../src/icas TP06-sol.cas > TP06.tst
18
+
diff TP06.tst TP06-sol.cas.out1