gnu: sbcl-cluffer: Remove bash reference from the closure.

* gnu/packages/lisp-xyz.scm (sbcl-cluffer)[arguments]: Unpatch shell shebangs.

It's only needed to generate the documentation (which we should do at
build-time by the way).

This takes the closure size of cl-cluffer from 40 MiB down to 0 MiB.
This commit is contained in:
Pierre Neidhardt 2022-07-07 13:56:16 +02:00
parent 5fb69a3bed
commit ced05db048
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F

@ -11328,6 +11328,21 @@ sequences of objects.")
(build-system asdf-build-system/sbcl)
(inputs
(list sbcl-acclimation sbcl-clump))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'unpatch-shebangs
(lambda* (#:key outputs #:allow-other-keys)
;; The documentation Makefile rely on shell scripts.
;; TODO: Build it!
;; In the mean time, remove the shabang as it adds bash to the
;; closure.
(let* ((out (assoc-ref outputs "out"))
(build-aux (string-append
out "/share/")))
(substitute* (find-files build-aux)
(("^#!.*/bin/sh") "#!/bin/sh")
(("^#!.*/bin/bash") "#!/bin/bash"))))))))
(home-page "https://github.com/robert-strandh/cluffer")
(synopsis "Common Lisp library providing a protocol for text-editor buffers")
(description "Cluffer is a library for representing the buffer of a text