From ed0d985385cc4c45c9da2cc0886e454d261f3720 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Thu, 29 Aug 2024 18:25:46 +0200 Subject: gnu: scilab: Add sanity-check phase. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/maths.scm (scilab): [arguments]<#:phases>: Add sanity-check phase. Change-Id: Idc6911511fd0bf7e779d4af026f0a6390eb3b079 Signed-off-by: Ludovic Courtès --- 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 -- cgit v1.2.3