mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-11-16 17:34:37 +00:00
Compare commits
No commits in common. "b46e9132f36f2078624c767c940ebe1567ecf980" and "9dbc67579d735944a8a72a53741e0982b615c7c3" have entirely different histories.
b46e9132f3
...
9dbc67579d
@ -97,7 +97,6 @@ Binary Packages / 二進制包:
|
|||||||
+ atuin-bin
|
+ atuin-bin
|
||||||
+ clash-bin
|
+ clash-bin
|
||||||
+ hugo-bin
|
+ hugo-bin
|
||||||
+ komga-bin
|
|
||||||
+ mihomo-bin
|
+ mihomo-bin
|
||||||
+ miniflux-injector-icecat
|
+ miniflux-injector-icecat
|
||||||
+ shadow-tls-bin
|
+ shadow-tls-bin
|
||||||
@ -117,7 +116,6 @@ Nonfree Software / 非自由軟件:
|
|||||||
+ iwd-service-type
|
+ iwd-service-type
|
||||||
+ forgejo-service-type
|
+ forgejo-service-type
|
||||||
+ jellyfin-service-type
|
+ jellyfin-service-type
|
||||||
+ komga-service-type
|
|
||||||
+ miniflux-service-type
|
+ miniflux-service-type
|
||||||
+ misskey-service-type
|
+ misskey-service-type
|
||||||
+ qbittorrent-service-type
|
+ qbittorrent-service-type
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
"cloudflared"
|
"cloudflared"
|
||||||
"dinit"
|
"dinit"
|
||||||
"hugo-bin"
|
"hugo-bin"
|
||||||
"komga-bin"
|
|
||||||
"mihomo-bin"
|
"mihomo-bin"
|
||||||
"shadow-tls-bin"
|
"shadow-tls-bin"
|
||||||
"sing-box-bin"
|
"sing-box-bin"
|
||||||
|
|||||||
@ -10,13 +10,11 @@
|
|||||||
#:use-module (guix build-system copy)
|
#:use-module (guix build-system copy)
|
||||||
#:use-module (gnu build icecat-extension)
|
#:use-module (gnu build icecat-extension)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages bash)
|
|
||||||
#:use-module (gnu packages bootstrap)
|
#:use-module (gnu packages bootstrap)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages elf)
|
#:use-module (gnu packages elf)
|
||||||
#:use-module (gnu packages gcc)
|
#:use-module (gnu packages gcc)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
#:use-module (gnu packages java)
|
|
||||||
#:use-module (gnu packages nss))
|
#:use-module (gnu packages nss))
|
||||||
|
|
||||||
(define license
|
(define license
|
||||||
@ -247,53 +245,6 @@ designed for flexibility.")
|
|||||||
(license license:asl2.0)
|
(license license:asl2.0)
|
||||||
(properties '((upstream-name . "hugo")))))
|
(properties '((upstream-name . "hugo")))))
|
||||||
|
|
||||||
(define-public komga-bin
|
|
||||||
(package
|
|
||||||
(name "komga-bin")
|
|
||||||
(version "1.18.0")
|
|
||||||
(source (origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append
|
|
||||||
"https://github.com/gotson/komga/releases/download/" version
|
|
||||||
"/komga-" version ".jar"))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1rjjyv2fdb8hqc46az5gw2jgza1p8kg0db98iv4cmmhzgmyljk13"))))
|
|
||||||
(build-system copy-build-system)
|
|
||||||
(arguments
|
|
||||||
(list #:install-plan
|
|
||||||
#~'((#$(string-append "komga-" (package-version this-package) ".jar")
|
|
||||||
"lib/komga/komga.jar"))
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(replace 'install
|
|
||||||
(lambda* (#:key inputs source #:allow-other-keys)
|
|
||||||
(let* ((lib (in-vicinity #$output "lib/komga"))
|
|
||||||
(bin (in-vicinity #$output "bin"))
|
|
||||||
(jar (in-vicinity lib "komga.jar"))
|
|
||||||
(exe "komga"))
|
|
||||||
(mkdir-p lib)
|
|
||||||
(copy-file source jar)
|
|
||||||
(call-with-output-file exe
|
|
||||||
(lambda (port)
|
|
||||||
(format port "~
|
|
||||||
#!~a
|
|
||||||
export LC_ALL=C.UTF-8
|
|
||||||
exec ~a -jar ~a $@~%"
|
|
||||||
(search-input-file inputs "bin/bash")
|
|
||||||
(search-input-file inputs "bin/java")
|
|
||||||
jar)))
|
|
||||||
(chmod exe #o555)
|
|
||||||
(install-file exe bin)))))))
|
|
||||||
(inputs (list bash-minimal openjdk))
|
|
||||||
(home-page "https://komga.org/")
|
|
||||||
(synopsis "Media server for comics/mangas/BDs/magazines/eBooks")
|
|
||||||
(description
|
|
||||||
"Komga is a media server for your comics, mangas, BDs, magazines and
|
|
||||||
eBooks.")
|
|
||||||
(license license:expat)
|
|
||||||
(properties '((upstream-name . "komga")))))
|
|
||||||
|
|
||||||
(define miniflux-injector
|
(define miniflux-injector
|
||||||
(package
|
(package
|
||||||
(name "miniflux-injector")
|
(name "miniflux-injector")
|
||||||
|
|||||||
@ -7,7 +7,6 @@
|
|||||||
#:use-module (guix records)
|
#:use-module (guix records)
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages version-control)
|
#:use-module (gnu packages version-control)
|
||||||
#:use-module (rosenthal packages binaries)
|
|
||||||
#:use-module (rosenthal packages web)
|
#:use-module (rosenthal packages web)
|
||||||
#:use-module (gnu services)
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu services admin)
|
#:use-module (gnu services admin)
|
||||||
@ -23,9 +22,6 @@
|
|||||||
jellyfin-configuration
|
jellyfin-configuration
|
||||||
jellyfin-service-type
|
jellyfin-service-type
|
||||||
|
|
||||||
komga-configuration
|
|
||||||
komga-service-type
|
|
||||||
|
|
||||||
misskey-configuration
|
misskey-configuration
|
||||||
misskey-service-type
|
misskey-service-type
|
||||||
|
|
||||||
@ -210,64 +206,6 @@
|
|||||||
(default-value (jellyfin-configuration))
|
(default-value (jellyfin-configuration))
|
||||||
(description "Run Jellyfin, a media system.")))
|
(description "Run Jellyfin, a media system.")))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
|
||||||
;;; Komga
|
|
||||||
;;;
|
|
||||||
|
|
||||||
|
|
||||||
(define-configuration komga-configuration
|
|
||||||
(komga
|
|
||||||
(file-like komga-bin)
|
|
||||||
"Package to provide @file{/bin/komga}.")
|
|
||||||
(port
|
|
||||||
(integer 25600)
|
|
||||||
"Port to listen to for the API and web interface.")
|
|
||||||
(auto-start?
|
|
||||||
(boolean #t)
|
|
||||||
"Whether to start automatically.")
|
|
||||||
(no-serialization))
|
|
||||||
|
|
||||||
(define %komga-accounts
|
|
||||||
(list (user-group (name "komga") (system? #t))
|
|
||||||
(user-account
|
|
||||||
(name "komga")
|
|
||||||
(group "komga")
|
|
||||||
(system? #t)
|
|
||||||
(comment "Komga user")
|
|
||||||
(home-directory "/var/lib/komga"))))
|
|
||||||
|
|
||||||
(define komga-shepherd-service
|
|
||||||
(match-record-lambda <komga-configuration>
|
|
||||||
(komga port auto-start?)
|
|
||||||
(list (shepherd-service
|
|
||||||
(documentation "Run Komga.")
|
|
||||||
(provision '(komga))
|
|
||||||
(requirement '(loopback))
|
|
||||||
(start
|
|
||||||
#~(make-forkexec-constructor
|
|
||||||
(list #$(file-append komga "/bin/komga"))
|
|
||||||
#:user "komga"
|
|
||||||
#:group "komga"
|
|
||||||
#:log-file "/var/log/komga.log"
|
|
||||||
#:environment-variables
|
|
||||||
'("KOMGA_CONFIGDIR=/var/lib/komga"
|
|
||||||
#$(string-append "SERVER_PORT=" (number->string port)))))
|
|
||||||
(stop
|
|
||||||
#~(make-kill-destructor))
|
|
||||||
(auto-start? auto-start?)))))
|
|
||||||
|
|
||||||
(define komga-service-type
|
|
||||||
(service-type
|
|
||||||
(name 'komga)
|
|
||||||
(extensions
|
|
||||||
(list (service-extension account-service-type
|
|
||||||
(const %komga-accounts))
|
|
||||||
(service-extension shepherd-root-service-type
|
|
||||||
komga-shepherd-service)))
|
|
||||||
(default-value (komga-configuration))
|
|
||||||
(description "Run Komga.")))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Misskey
|
;; Misskey
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user