aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2023-11-06 00:51:51 +0100
committerLudovic Courtès <ludo@gnu.org>2023-11-23 12:56:43 +0100
commitc7742721d16ac175951e4677086200dbfe9fb128 (patch)
tree1f708300c35683b9883bf1580ca8f97990dab133 /gnu/packages
parent671592c2dddb06e5be448a65b3a9f7f152e04e40 (diff)
downloadguix-c7742721d16ac175951e4677086200dbfe9fb128.tar.gz
guix-c7742721d16ac175951e4677086200dbfe9fb128.zip
gnu: scilab: Set default SCIHOME value.
* gnu/packages/maths.scm (scilab): Set default SCIHOME value. [argmuments](phases)[rewrap-scilab-cli]: Set default -scihome option to respect XDG base dirs specification. Change-Id: I9b55758a3ca1fbc523c3e40e891a2462f3246390 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maths.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 2e1d9f9570..246f189115 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -9739,8 +9739,12 @@ computation is supported via MPI.")
(copy-file (bin ".scilab-cli-bin-real") (bin "scilab-cli-bin"))
(delete-file (bin ".scilab-cli-bin-real"))
(substitute* (bin "scilab-cli")
- (("\\.scilab-cli-bin-real")
- "scilab-cli-bin")
+ ;; Also set SCIHOME to sensible XDG base dirs value.
+ (("\\.scilab-cli-bin-real\"")
+ (string-append
+ "scilab-cli-bin\" -scihome "
+ "\"${XDG_STATE_HOME:-$HOME/.local/state}/scilab/"
+ #$(package-version this-package) "\""))
(("export SCI=")
"unset LANGUAGE\nexport SCI="))))))))
(home-page "https://www.scilab.org/")