me
/
guix
Archived
1
0
Fork 0

gnu: sbcl-clsql: Remove Make reference from closure.

* gnu/packages/lisp-xyz.scm (sbcl-clsql)[source]: Delete the 'debian' folder
and all Makefiles.

This takes the closure size from 930 MiB down to 889 MiB.
master
Pierre Neidhardt 2022-07-07 10:40:13 +02:00
parent 681a02916d
commit 513f6c2786
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 17 additions and 0 deletions

View File

@ -10402,8 +10402,25 @@ interface for MySQL, PostgreSQL and SQLite.")
(file-name (git-file-name name version))
(sha256
(base32 "1v1k3s5bsy3lgd9gk459bzpb1r0kdjda25s29samxw4gsgf1fqvp"))
(modules '((guix build utils)))
(snippet
'(begin
;; The useless bundled debian folder drags `make' into the closure.
(delete-file-recursively "debian")
;; Other Makefiles that drag `make'.
(for-each delete-file
'("Makefile"
"db-db2/Makefile"
"db-mysql/Makefile"
"db-odbc/Makefile"
"db-oracle/Makefile"
"db-sqlite/Makefile"
"doc/Makefile"
"examples/sqlite3/init-func/Makefile"
"sql/Makefile"
"tests/Makefile"
"uffi/Makefile"
"uffi/Makefile.32+64bits"))
;; Remove precompiled libraries.
(delete-file "db-mysql/clsql_mysql.dll")
(delete-file "uffi/clsql_uffi.dll")