me
/
guix
Archived
1
0
Fork 0

gnu: miniflux: Update to 2.0.46.

* gnu/packages/web.scm (miniflux): Update to 2.0.46.
[arguments]<#:build-flags>: Set version.
<#:phases>: Add 'disable-cgo, 'install-manpage.
[inputs]: Replace go-github-com-coreos-go-oidc with
go-github-com-coreos-go-oidc-v3.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
master
Hilton Chain 2023-07-22 12:33:00 +08:00 committed by 宋文武
parent 7a4d4aa935
commit e7b8edc744
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 15 additions and 4 deletions

View File

@ -326,7 +326,7 @@ and its related documentation.")
(define-public miniflux (define-public miniflux
(package (package
(name "miniflux") (name "miniflux")
(version "2.0.44") (version "2.0.46")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -335,21 +335,32 @@ and its related documentation.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"18ggk71nk3zylgkwq32glggdcapgsj772qn2y4i9hbk374l6h61w")))) "1qv95kipjlg374kiq6gssh5jsb5arahq4jsb7vkg3njnx0ldwvkb"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
(list #:go go-1.19 (list #:go go-1.19
#:install-source? #f #:install-source? #f
#:import-path "miniflux.app" #:import-path "miniflux.app"
#:build-flags
#~(list (string-append
"-ldflags= -X miniflux.app/version.Version=" #$version))
#:phases #:phases
#~(modify-phases %standard-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 _ (lambda _
(let ((bindir (string-append #$output "/bin/"))) (let ((bindir (string-append #$output "/bin/")))
(rename-file (string-append bindir "miniflux.app") (rename-file (string-append bindir "miniflux.app")
(string-append bindir "miniflux")))))))) (string-append bindir "miniflux"))))))))
(inputs (inputs
(list go-github-com-coreos-go-oidc (list go-github-com-coreos-go-oidc-v3
go-github-com-go-telegram-bot-api-telegram-bot-api go-github-com-go-telegram-bot-api-telegram-bot-api
go-github-com-gorilla-mux go-github-com-gorilla-mux
go-github-com-lib-pq go-github-com-lib-pq