gnu: sbcl-triads: Add bin output.

* gnu/packages/lisp-xyz.scm (sbcl-triads)[arguments]: Add 'build-binary' phase
  to build and install the binary executable.
  (ecl-triads): Remove the build-binary phase because this program has not
  been tested on ECL upstream.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Charles Jackson 2022-12-13 22:56:23 -06:00 committed by Guillaume Le Vaillant
parent debfbdefda
commit 89a8534b42
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -26264,8 +26264,25 @@ (define-public sbcl-triads
(sha256
(base32 "146mwshynhdw82m2nxrcjvf1nk0z3fn6ywcd2vqxkly5qricc53w"))))
(build-system asdf-build-system/sbcl)
(outputs '("out" "bin"))
(arguments
'(#:asd-systems '("charje.triads")))
'(#:asd-systems '("charje.triads")
#:phases
(modify-phases %standard-phases
(add-after 'create-asdf-configuration 'build-binary
(lambda* (#:key outputs #:allow-other-keys)
(setenv "HOME" (getcwd))
(invoke
"sbcl" "--eval" "(require :asdf)" "--eval"
(format
#f "~S"
`(progn
(require "charje.triads"
,(string-append (getcwd) "/charje.triads.asd"))
(asdf:make "charje.triads"))))
(install-file
(string-append (getcwd) "/triads")
(string-append (assoc-ref outputs "bin") "/bin")))))))
(inputs
(list sbcl-cl-str
sbcl-serapeum
@ -26282,7 +26299,15 @@ (define-public cl-triads
(sbcl-package->cl-source-package sbcl-triads))
(define-public ecl-triads
(sbcl-package->ecl-package sbcl-triads))
(let ((ecl-package (sbcl-package->ecl-package sbcl-triads)))
(package
(inherit ecl-package)
(outputs '("out"))
(arguments
(substitute-keyword-arguments (package-arguments ecl-package)
((#:phases phases)
`(modify-phases ,phases
(delete 'build-binary))))))))
(define-public sbcl-closure-template
;; There are no releases since 2015.