gnu: mysql: Remove unnecessary binaries.
This saves ~42 MiB on x86_64. * gnu/packages/databases.scm (mysql)[arguments]: Add 'remove-extra-binaries' phase.
This commit is contained in:
parent
3f289db69d
commit
6a52df505a
|
@ -145,6 +145,16 @@ SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
|
||||||
(list (string-append out "/bin/mysqlbug")
|
(list (string-append out "/bin/mysqlbug")
|
||||||
(string-append
|
(string-append
|
||||||
out "/share/mysql/docs/INFO_BIN")))
|
out "/share/mysql/docs/INFO_BIN")))
|
||||||
|
#t)))
|
||||||
|
(add-after
|
||||||
|
'install 'remove-extra-binaries
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
;; Remove the 3 *_embedded files, which weigh in at
|
||||||
|
;; 14 MiB each.
|
||||||
|
(for-each delete-file
|
||||||
|
(find-files (string-append out "/bin")
|
||||||
|
"_embedded$"))
|
||||||
#t))))))
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bison" ,bison)
|
`(("bison" ,bison)
|
||||||
|
|
Loading…
Reference in New Issue