1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: femtolisp: Modernize the package.

* gnu/packages/scheme.scm (femtolisp): Modernize the package.
[arguments]: Use GEXPs.

Change-Id: Ib234d89a2a0c6a8c979a28fddb9cc7ec6014d8d3
This commit is contained in:
Artyom V. Poptsov
2025-11-15 20:59:31 +03:00
parent cd6adc26cc
commit b4f9eb6fc4

View File

@@ -1057,30 +1057,26 @@ comprehensible public-domain interpreter for R4RS Scheme offering:
'("armhf-linux" "mips64el-linux" "aarch64-linux")))
(build-system gnu-build-system)
(arguments
`(#:make-flags '("CC=gcc" "release")
#:test-target "test"
#:phases
(modify-phases %standard-phases
(delete 'bootstrap)
(delete 'configure) ; No configure script
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS" "-Wno-error=implicit-function-declaration")))
(replace 'install ; Makefile has no 'install phase
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(install-file "flisp" bin)
#t)))
;; The flisp binary is now available, run bootstrap to
;; generate flisp.boot and afterwards runs make test.
(add-after 'install 'bootstrap-gen-and-test
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(invoke "./bootstrap.sh")
(install-file "flisp.boot" bin)
#t))))))
(list #:make-flags #~(list "CC=gcc" "release")
#:test-target "test"
#:phases
#~(modify-phases %standard-phases
(delete 'bootstrap)
(delete 'configure) ; No configure script
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS" "-Wno-error=implicit-function-declaration")))
(replace 'install ; Makefile has no 'install phase
(lambda _
(let ((bin (string-append #$output "/bin")))
(install-file "flisp" bin))))
;; The flisp binary is now available, run bootstrap to
;; generate flisp.boot and afterwards runs make test.
(add-after 'install 'bootstrap-gen-and-test
(lambda _
(let ((bin (string-append #$output "/bin")))
(invoke "./bootstrap.sh")
(install-file "flisp.boot" bin)))))))
(synopsis "Scheme-like lisp implementation")
(description
"@code{femtolisp} is a scheme-like lisp implementation with a