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 <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2024-08-29 18:25:46 +02:00 committed by Ludovic Courtès
parent 8570fccfa7
commit ed0d985385
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -10113,7 +10113,12 @@ (define (bin path) (string-append #$output "/bin/" path))
"\"${XDG_STATE_HOME:-$HOME/.local/state}/scilab/" "\"${XDG_STATE_HOME:-$HOME/.local/state}/scilab/"
#$(package-version this-package) "\"")) #$(package-version this-package) "\""))
(("export SCI=") (("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/") (home-page "https://www.scilab.org/")
(synopsis "Software for engineers and scientists") (synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab (description "This package provides the non-graphical version of the Scilab