gnu: sbcl-trivial-clipboard: Replace xclip with xsel to reduce closure size.

* gnu/packages/lisp-xyz.scm (sbcl-trivial-clipboard)[inputs]: Replace xclip
with xsel.
[arguments]: Adapt reference.

This takes the closure size of cl-trivial-clipboard from 90 MiB down to 78 MiB.
This commit is contained in:
Pierre Neidhardt 2022-07-07 13:59:52 +02:00
parent ced05db048
commit 1004c54c2e
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -3853,7 +3853,9 @@ (define-public sbcl-trivial-clipboard
"0apkgqrscylw3hhm5x2vs0z3hz6h7zd7dl5y3wr2zl8qjpvpc80k"))))
(build-system asdf-build-system/sbcl)
(inputs
(list xclip))
;; Pick xsel instead of xclip because its closure size is slightly
;; smaller.
(list xsel))
(native-inputs
(list sbcl-fiveam))
(arguments
@ -3862,8 +3864,8 @@ (define-public sbcl-trivial-clipboard
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/text.lisp"
(("\"xclip\"")
(string-append "\"" (assoc-ref inputs "xclip") "/bin/xclip\""))))))))
(("\"xsel\"")
(string-append "\"" (assoc-ref inputs "xsel") "/bin/xsel\""))))))))
(home-page "https://github.com/snmsts/trivial-clipboard")
(synopsis "Access system clipboard in Common Lisp")
(description