git.iko.soy/typeable/nixpkgs
on master help sign in
maxima: add various fixes, re-add ecl support
commiteb119b045a28c34d3d6dcd179a381bcb658c6977 authorTimo Kaufmann <timokau@zoho.com> dateWed 11 Apr 2018, 22:53 (9 years ago) parent19a6f0e
2 files changed+41−10
pkgs/applications/science/math/maxima/default.nix+40−10 pkgs/top-level/all-packages.nix+1
pkgs/applications/science/math/maxima/default.nix+40−10
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, sbcl, texinfo, perl, python, makeWrapper, rlwrap ? null,
2−tk ? null, gnuplot ? null, ecl ? null, ecl-fasl ? false
1+{ stdenv, fetchurl, fetchpatch, sbcl, texinfo, perl, python, makeWrapper, rlwrap ? null
2+, tk ? null, gnuplot ? null, ecl ? null, ecl-fasl ? false
33}:
44
55let
@@ -11,6 +11,7 @@ let
1111 (stdenv.lib.filter (x: x != null) [ sbcl ecl rlwrap tk gnuplot ]);
1212in
1313stdenv.mkDerivation ({
14+ inherit version;
1415 name = "${name}-${version}";
1516
1617 src = fetchurl {
@@ -18,8 +19,9 @@ stdenv.mkDerivation ({
1819 sha256 = "0x0n81z0s4pl8nwpf7ivlsbvsdphm9w42250g7qdkizl0132by6s";
1920 };
2021
21− buildInputs = stdenv.lib.filter (x: x != null)
22− [sbcl ecl texinfo perl python makeWrapper];
22+ buildInputs = stdenv.lib.filter (x: x != null) [
23+ sbcl ecl texinfo perl python makeWrapper
24+ ];
2325
2426 postInstall = ''
2527 # Make sure that maxima can find its runtime dependencies.
@@ -36,6 +38,39 @@ stdenv.mkDerivation ({
3638 '')
3739 ;
3840
41+ patches = [
42+ # fix path to info dir (see https://trac.sagemath.org/ticket/11348)
43+ (fetchpatch {
44+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/maxima/patches/infodir.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
45+ sha256 = "09v64n60f7i6frzryrj0zd056lvdpms3ajky4f9p6kankhbiv21x";
46+ })
47+
48+ # fix https://sourceforge.net/p/maxima/bugs/2596/
49+ (fetchpatch {
50+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/maxima/patches/matrixexp.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
51+ sha256 = "06961hn66rhjijfvyym21h39wk98sfxhp051da6gz0n9byhwc6zg";
52+ })
53+
54+ # undo https://sourceforge.net/p/maxima/code/ci/f5e9b0f7eb122c4e48ea9df144dd57221e5ea0ca, see see https://trac.sagemath.org/ticket/13364#comment:93
55+ (fetchpatch {
56+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/maxima/patches/undoing_true_false_printing_patch.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
57+ sha256 = "0fvi3rcjv6743sqsbgdzazy9jb6r1p1yq63zyj9fx42wd1hgf7yx";
58+ })
59+
60+ # upstream bug https://sourceforge.net/p/maxima/bugs/2520/ (not fixed)
61+ # introduced in https://trac.sagemath.org/ticket/13364
62+ (fetchpatch {
63+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/maxima/patches/0001-taylor2-Avoid-blowing-the-stack-when-diff-expand-isn.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
64+ sha256 = "0xa0b6cr458zp7lc7qi0flv5ar0r3ivsqhjl0c3clv86di2y522d";
65+ })
66+ ] ++ stdenv.lib.optionals ecl-fasl [
67+ # build fasl, needed for ECL support
68+ (fetchpatch {
69+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/maxima/patches/maxima.system.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
70+ sha256 = "18zafig8vflhkr80jq2ivk46k92dkszqlyq8cfmj0b2vcfjwwbar";
71+ })
72+ ];
73+
3974 # Failures in the regression test suite won't abort the build process. We run
4075 # the suite only so that potential errors show up in the build log. See also:
4176 # http://sourceforge.net/tracker/?func=detail&aid=3365831&group_id=4933&atid=104933.
@@ -57,10 +92,5 @@ stdenv.mkDerivation ({
5792
5893 platforms = stdenv.lib.platforms.unix;
5994 maintainers = [ stdenv.lib.maintainers.peti ];
60− broken = ecl != null;
6195 };
62−} // (stdenv.lib.optionalAttrs ecl-fasl {
63− preConfigure = ''
64− sed -e '/c::build-program "binary-ecl\/maxima"/i(c::build-fasl "binary-ecl\/maxima.fasl" :lisp-files obj :ld-flags (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*" (find-package "MAXIMA"))))) (if (and x (not (string= x ""))) (list x))))' -i src/maxima.system
65− '';
66−}))
96+})
pkgs/top-level/all-packages.nix+1
@@ -20144,6 +20144,7 @@ with pkgs;
2014420144 };
2014520145 maxima-ecl = callPackage ../applications/science/math/maxima {
2014620146 ecl = ecl_16_1_2;
20147+ ecl-fasl = true;
2014720148 sbcl = null;
2014820149 };
2014920150