diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-04-30 22:29:37 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-04-30 22:29:45 +0100 |
| commit | 5e1fc3f233b5b80095f4c8eccf49ac4bb980863f (patch) | |
| tree | 59c485a70410bd11f05b3fb5ba00b83d6bde3b94 | |
| parent | 0a8a006efd33fe438b47577710d476928ac79602 (diff) | |
gnu: go-github-com-containerd-containerd-api: Remove sources.
* gnu/packages/golang-web.scm (go-github-com-containerd-containerd-api):
[source] <snippet>: Keep source which relates to import-path (go.mod)
only.
Change-Id: Ib65de23c579e86d0348f264b1d64a64399992fb3
| -rw-r--r-- | gnu/packages/golang-web.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 21cbf86b77..81627cfce1 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4676,7 +4676,19 @@ it mimics the functionality and signatures of the standard `os` package.") #:subdir "api")))) (file-name (git-file-name name version)) (sha256 - (base32 "06pl08p1f86z70hy9si5h7p2bgassqjsy625pvzxazxix35ggq6x")))) + (base32 "06pl08p1f86z70hy9si5h7p2bgassqjsy625pvzxazxix35ggq6x")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + (define (delete-all-but directory . preserve) + (with-directory-excursion directory + (let* ((pred (negate (cut member <> + (cons* "." ".." preserve)))) + (items (scandir "." pred))) + (for-each (cut delete-file-recursively <>) items)))) + (delete-all-but "." "api"))))) (build-system go-build-system) (arguments (list |
