diff options
author | Andreas Enge <andreas@enge.fr> | 2025-02-12 10:19:15 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-02-15 18:08:10 +0100 |
commit | 135cc3515b244c93d70b4d203b07bb3439e4d7de (patch) | |
tree | e74dcf25a9380db221e448aa2dcb7f9e8487dd97 | |
parent | d78b91e9d0e2d9ca5382bd2dcc536318e792f201 (diff) |
gnu: Add maxima-ecl.
* gnu/packages/maths.scm (maxima-ecl): New variable.
Change-Id: I71a14d064e67aa34fdd7f6eb8499dfbd1dea11b9
-rw-r--r-- | gnu/packages/maths.scm | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8427b7f6db..0b170e2c4f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2020, 2023, 2024 Andreas Enge <andreas@enge.fr> +;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2020, 2023, 2024, 2025 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> ;;; Copyright © 2014, 2016, 2017 John Darrington <jmd@gnu.org> ;;; Copyright © 2014-2022 Eric Bavier <bavier@posteo.net> @@ -5511,6 +5511,40 @@ point numbers.") ;; GPLv2 only is therefore the smallest subset. (license license:gpl2))) +(define-public maxima-ecl + (package/inherit maxima + (name "maxima-ecl") + (inputs + (modify-inputs (package-inputs maxima) + (delete "sbcl") + (prepend ecl))) + (arguments + (substitute-keyword-arguments (package-arguments maxima) + ((#:configure-flags flags) + #~(list "--enable-ecl")) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'install 'install-lib + (lambda _ + (let ((lib (string-append + #$output "/lib/maxima/" + #$(package-version this-package) + "/binary-ecl"))) + (install-file "src/binary-ecl/maxima.fas" lib)))) + (replace 'check + (lambda _ + (invoke "sh" "-c" + (string-append + "./maxima-local " + "--lisp=ecl " + "--batch-string=\"run_testsuite();\" " + "| grep -q \"No unexpected errors found\"")))))))) + (description + (string-append + (package-description maxima) + " This package variant uses ECL as the underlying Lisp +implementation.")))) + (define-public wxmaxima (package (name "wxmaxima") |