rosenthal: cloudflared: Add build flags and install documentation.

* rosenthal/packages/networking.scm (cloudflared)[arguments]<#:build-flags>:
Add field.
<#:phases>: Install documentation.
remotes/origin/trunk
Hilton Chain 2 years ago
parent cae796ef1c
commit ecac695859
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 17
      rosenthal/packages/networking.scm

@ -34,7 +34,22 @@
(list #:go go-1.19 (list #:go go-1.19
#:install-source? #f #:install-source? #f
#:import-path "github.com/cloudflare/cloudflared/cmd/cloudflared" #:import-path "github.com/cloudflare/cloudflared/cmd/cloudflared"
#:unpack-path "github.com/cloudflare/cloudflared")) #:unpack-path "github.com/cloudflare/cloudflared"
#:build-flags
#~(list (string-append
"-ldflags="
" -X main.Version=" #$version
" -X github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=Guix"))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-documentation
(lambda _
(let ((src "src/github.com/cloudflare/cloudflared/cloudflared_man_template")
(dst (string-append #$output "/share/man/man1/cloudflared.1")))
(substitute* src
(("\\$\\{VERSION\\}") #$version))
(mkdir-p (dirname dst))
(copy-file src dst)))))))
(home-page "https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/") (home-page "https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/")
(synopsis "Cloudflare Tunnel client") (synopsis "Cloudflare Tunnel client")
(description (description

Loading…
Cancel
Save