me
/
guix
Archived
1
0
Fork 0

gnu: Add cl-yxorp-cli.

* gnu/packages/lisp-xyz.scm (cl-yxorp-cli): New variable.

Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
Charles 2021-08-16 09:45:34 +02:00 committed by Guillaume Le Vaillant
parent 6fcaf85337
commit 5d2853f4b2
No known key found for this signature in database
GPG Key ID: 6BE8208ADF21FE3F
1 changed files with 31 additions and 0 deletions

View File

@ -57,6 +57,7 @@
#:use-module (guix hg-download)
#:use-module (guix utils)
#:use-module (guix build-system asdf)
#:use-module (guix build-system gnu)
#:use-module (guix build-system trivial)
#:use-module (gnu packages base)
#:use-module (gnu packages c)
@ -18286,6 +18287,36 @@ language).")
(define-public cl-yxorp
(sbcl-package->cl-source-package sbcl-yxorp))
(define-public cl-yxorp-cli
(package
(inherit sbcl-yxorp)
(name "cl-yxorp-cli")
(build-system gnu-build-system)
(arguments
'(#:tests? #f
#:strip-binaries? #f
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-after 'unpack 'set-home
(lambda _
(setenv "HOME" "/tmp")))
(replace 'build
(lambda _
(invoke
"sbcl" "--noinform"
"--non-interactive"
"--no-userinit"
"--eval" "(require :asdf)"
"--eval" "(pushnew (uiop:getcwd) asdf:*central-registry*)"
"--load" "build.lisp")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(mkdir-p bin)
(install-file "cl-yxorp" bin)))))))
(inputs (cons (list "sbcl" sbcl) (package-inputs sbcl-yxorp)))))
(define-public sbcl-rss
;; No release.
(let ((commit "51d0145e91b86327ae5c36364f9c3048052e7a58"))