Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guix package #30

Open
jgarte opened this issue Dec 3, 2022 · 1 comment
Open

Guix package #30

jgarte opened this issue Dec 3, 2022 · 1 comment

Comments

@jgarte
Copy link
Contributor

jgarte commented Dec 3, 2022

This is a TODO for myself to package sbcli for GNU Guix.

Blocked by: #28 and #29

@jgarte
Copy link
Contributor Author

jgarte commented Dec 3, 2022

(define-public sbcl-sbcli
  (let ((commit "04af2d30886705626c2e45bd8f334a6aeb49a63f")
        (revision "0"))
    (package
      (name "sbcl-sbcli")
      (version "0.0.2")
      (source
        (origin
          (method git-fetch)
          (uri (git-reference
                (url "https://github.com/jgarte/sbcli")
                (commit commit)))
          (file-name (git-file-name name version))
          (sha256
           (base32 "06vk451ng48y8a7nxnr9livjis470mnk44yr9kza07dd2mzhaz1j"))))
      (build-system asdf-build-system/source) ; FIXME?
      (arguments
        `(#:phases
          (modify-phases %standard-phases
            (replace 'build
              (lambda* (#:key outputs #:allow-other-keys)
                (setenv "HOME" (getcwd))
                (system*
                 "sbcl" "--no-userinit"
                 "--eval" "(require :asdf)"
                 "--eval" (string-append
                           "(require :sbcli \""
                           (getcwd) "/sbcli.asd\")")
                 "--eval" "(asdf:make :sbcli)")
                (install-file (string-append (getcwd) "/repl")
                              (string-append (assoc-ref outputs "out") "/bin"))))
            (delete 'check)
            (delete 'create-asdf-configuration))))
      (inputs
        (list sbcl-alexandria
              sbcl-cl-readline
              sbcl-cl-str))
      (home-page "https://github.com/hellerve/sbcli")
      (synopsis "REPL for my SBCL needs")
      (description
  "A better REPL for SBCL. 
  sbcli handles errors gracefully, is not too verbose, has readline capabilities, 
  including multiline input and reset, and has optional syntax highlighting 
  capabilities using pygmentize.")
      (license license:gpl3+))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant