diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 44e62f774d..2e1d9f9570 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -9667,6 +9667,13 @@ (define-public scilab (substitute* "modules/Makefile.am" (("libscilab_cli_la_LDFLAGS = .*\\)" all) (string-append all " -lcurl"))))) + (add-after 'unpack 'set-version + (lambda _ + (substitute* "modules/core/includes/version.h.in" + (("scilab-branch-main") ; version + (string-append + "scilab-" + #$(version-major+minor (package-version this-package))))))) (add-after 'unpack 'restrain-to-scilab-cli (lambda _ ;; Install only scilab-cli.desktop