build: go-build-system: Re-ident.

* guix/build/go-build-system.scm (unpack): Fix indentation.
This commit is contained in:
Maxim Cournoyer 2019-04-04 23:24:57 -04:00
parent 85c1d20fa6
commit b5f0528354
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -161,12 +161,12 @@ (define* (unpack #:key source import-path unpack-path #:allow-other-keys)
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
(mkdir-p dest)
(if (file-is-directory? source)
(begin
(copy-recursively source dest #:keep-mtime? #t)
#t)
(if (string-suffix? ".zip" source)
(invoke "unzip" "-d" dest source)
(invoke "tar" "-C" dest "-xvf" source)))))
(begin
(copy-recursively source dest #:keep-mtime? #t)
#t)
(if (string-suffix? ".zip" source)
(invoke "unzip" "-d" dest source)
(invoke "tar" "-C" dest "-xvf" source)))))
(define (go-package? name)
(string-prefix? "go-" name))