civodul pushed a commit to branch master
in repository guix.

commit ed0d985385cc4c45c9da2cc0886e454d261f3720
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Aug 29 18:25:46 2024 +0200

    gnu: scilab: Add sanity-check phase.
    
    * gnu/packages/maths.scm (scilab):
      [arguments]<#:phases>: Add sanity-check phase.
    
    Change-Id: Idc6911511fd0bf7e779d4af026f0a6390eb3b079
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/maths.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ba49edb0c3..f3d5be7aba 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -10113,7 +10113,12 @@ computation is supported via MPI.")
                     "\"${XDG_STATE_HOME:-$HOME/.local/state}/scilab/"
                     #$(package-version this-package) "\""))
                   (("export SCI=")
-                   "unset LANGUAGE\nexport SCI="))))))))
+                   "unset LANGUAGE\nexport SCI="))))
+            (add-after 'rewrap-scilab-cli 'sanity-check
+              (lambda _
+                (setenv "HOME" (getcwd))
+                (invoke (string-append #$output "/bin/scilab-cli")
+                        "-e" "\"quit;\"")))))))
     (home-page "https://www.scilab.org/";)
     (synopsis "Software for engineers and scientists")
     (description "This package provides the non-graphical version of the Scilab

Reply via email to