gnu: alpine: Remove pre-built binaries from source.

* gnu/packages/mail.scm (alpine)[source]: Add a snippet to hunt down
and destroy pre-compiled objects.
This commit is contained in:
Tobias Geerinckx-Rice 2020-01-22 19:08:21 +01:00
parent f17bd3c646
commit bc0eb34759
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2748,7 +2748,13 @@ (define-public alpine
(commit "abeb2c25935ef8c75f1e5deef0f81276754dc975")))
(file-name (git-file-name name version))
(sha256
(base32 "0rqgbw08a5lj41dkp82aq480lqkc4bnxagna7wpqffi821n8gkwz"))))
(base32 "0rqgbw08a5lj41dkp82aq480lqkc4bnxagna7wpqffi821n8gkwz"))
(modules '((guix build utils)))
(snippet
'(begin
;; Remove pre-built binaries scattered across the source repository.
(for-each delete-file (find-files "." "\\.(dll|exe)"))
#t))))
(build-system gnu-build-system)
(arguments
`(#:make-flags (list "CC=gcc")