@@ -1435,7 +1435,14 @@ (define-public gap
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(share (string-append out "/share/gap")))
- (copy-recursively "pkg" (string-append share "/pkg")))))
+ (copy-recursively "pkg" (string-append share "/pkg"))
+ ;; These directories contain C/C++ source code, object files
+ ;; and Make dependency information
+ (for-each
+ delete-file-recursively
+ (find-files (string-append share "/pkg")
+ "^src$"
+ #:directories? #t)))))
;; configure logs and LaTeX output that contains timestamps, uname
;; output etc
(add-after 'install-packages 'remove-logs