unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 64413@debbugs.gnu.org
Cc: Hilton Chain <hako@ultrarare.space>
Subject: [bug#64413] [PATCH v2 1/1] gnu: miniflux: Update to 2.0.45.
Date: Fri, 14 Jul 2023 00:43:12 +0800	[thread overview]
Message-ID: <4985c50689b18b352625b7e9d14643b0b1047c29.1689266148.git.hako@ultrarare.space> (raw)
In-Reply-To: <cover.1689266148.git.hako@ultrarare.space>

* gnu/packages/web.scm (miniflux): Update to 2.0.45.
[arguments]<#:build-flags>: Set version.
<#:phases>: Add 'disable-cgo, 'install-manpage.
---
 gnu/packages/web.scm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index ad5ec0aba7..eca6f5bd9e 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -323,7 +323,7 @@ (define-public httpd/pinned
 (define-public miniflux
   (package
     (name "miniflux")
-    (version "2.0.44")
+    (version "2.0.45")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -332,15 +332,26 @@ (define-public miniflux
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "18ggk71nk3zylgkwq32glggdcapgsj772qn2y4i9hbk374l6h61w"))))
+                "0hyhn0qllw37gxn8vzgjxjvmip31zp7gnd7g55j9cpd4rm0pxppx"))))
     (build-system go-build-system)
     (arguments
      (list #:go go-1.19
            #:install-source? #f
            #:import-path "miniflux.app"
+           #:build-flags
+           #~(list (string-append
+                    "-ldflags= -X miniflux.app/version.Version=" #$version))
            #:phases
            #~(modify-phases %standard-phases
-               (add-after 'install 'rename-binary
+               (add-before 'build 'disable-cgo
+                 (lambda _
+                   (setenv "CGO_ENABLED" "0")))
+               (add-after 'install 'install-manpage
+                 (lambda* (#:key import-path #:allow-other-keys)
+                   (let ((man1 (string-append #$output "/share/man/man1/"))
+                         (page (format #f "src/~a/miniflux.1" import-path)))
+                     (install-file page man1))))
+               (add-after 'install-manpage 'rename-binary
                  (lambda _
                    (let ((bindir (string-append #$output "/bin/")))
                      (rename-file (string-append bindir "miniflux.app")
-- 
2.41.0





  reply	other threads:[~2023-07-13 16:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-02  9:50 [bug#64413] [PATCH] gnu: miniflux: Update to 2.0.45 Hilton Chain via Guix-patches via
2023-07-13 16:42 ` [bug#64413] [PATCH v2 0/1] " Hilton Chain via Guix-patches via
2023-07-13 16:43   ` Hilton Chain via Guix-patches via [this message]
2023-07-22  1:55     ` [bug#64413] [PATCH] " 宋文武 via Guix-patches via
2023-07-22  4:24       ` Hilton Chain via Guix-patches via
2023-07-22  4:29 ` [bug#64413] [PATCH v3 0/3] gnu: miniflux: Update to 2.0.46 Hilton Chain via Guix-patches via
2023-07-22  4:32   ` [bug#64413] [PATCH v3 1/3] gnu: Add go-github-com-go-jose-go-jose-v3 Hilton Chain via Guix-patches via
2023-07-22  4:32   ` [bug#64413] [PATCH v3 2/3] gnu: Add go-github-com-coreos-go-oidc-v3 Hilton Chain via Guix-patches via
2023-07-22  4:33   ` [bug#64413] [PATCH v3 3/3] gnu: miniflux: Update to 2.0.46 Hilton Chain via Guix-patches via
2023-08-13  8:03     ` bug#64413: [PATCH] gnu: miniflux: Update to 2.0.45 宋文武 via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4985c50689b18b352625b7e9d14643b0b1047c29.1689266148.git.hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=64413@debbugs.gnu.org \
    --cc=hako@ultrarare.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).