mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build: go-build-system: Re-ident.
* guix/build/go-build-system.scm (unpack): Fix indentation.
This commit is contained in:
parent
85c1d20fa6
commit
b5f0528354
1 changed files with 6 additions and 6 deletions
|
@ -161,12 +161,12 @@ unpacking."
|
||||||
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
||||||
(mkdir-p dest)
|
(mkdir-p dest)
|
||||||
(if (file-is-directory? source)
|
(if (file-is-directory? source)
|
||||||
(begin
|
(begin
|
||||||
(copy-recursively source dest #:keep-mtime? #t)
|
(copy-recursively source dest #:keep-mtime? #t)
|
||||||
#t)
|
#t)
|
||||||
(if (string-suffix? ".zip" source)
|
(if (string-suffix? ".zip" source)
|
||||||
(invoke "unzip" "-d" dest source)
|
(invoke "unzip" "-d" dest source)
|
||||||
(invoke "tar" "-C" dest "-xvf" source)))))
|
(invoke "tar" "-C" dest "-xvf" source)))))
|
||||||
|
|
||||||
(define (go-package? name)
|
(define (go-package? name)
|
||||||
(string-prefix? "go-" name))
|
(string-prefix? "go-" name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue