From fcac44c01253a723f4fec0e83178a553f9992a12 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 7 Jul 2022 10:45:40 +0200 Subject: [PATCH] gnu: sbcl-slime-swank: Remove gawk reference from closure. * gnu/packages/lisp-xyz.scm (sbcl-slime-swank)[source]: Delete the 'doc' folder. This takes the closure size from 159 MiB down to 156 MiB. --- gnu/packages/lisp-xyz.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 0ec698b5a4..71c0c586d7 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -2292,7 +2292,14 @@ (define-public sbcl-slime-swank (url "https://github.com/slime/slime/") (commit (string-append "v" version)))) (sha256 - (base32 "1s5mbljlz22pb90gwbd380nighkz6gdxl77hc08gri7wwr5gy5n2")))) + (base32 "1s5mbljlz22pb90gwbd380nighkz6gdxl77hc08gri7wwr5gy5n2")) + (modules '((guix build utils))) + (snippet + ;; The doc folder drags `gawk' into the closure. Doc is already + ;; provided by emacs-slime. + `(begin + (delete-file-recursively "doc") + #t)))) (build-system asdf-build-system/sbcl) (arguments '(#:asd-systems '("swank")))