You've already forked guix-tribes
Fix Tribes package and service deployment
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
(inherit elixir)
|
||||
(name "elixir-otp28")
|
||||
(version "1.19.5")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments elixir)
|
||||
((#:tests? _ #f)
|
||||
#f)))
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
||||
@@ -195,7 +195,13 @@ the local Parrhesia path dependency."
|
||||
(when (file-exists? libsecp-makefile)
|
||||
(substitute* libsecp-makefile
|
||||
(("\\./autogen\\.sh")
|
||||
(string-append sh-bin " ./autogen.sh")))))
|
||||
(string-append
|
||||
"CONFIG_SHELL=" sh-bin " SHELL=" sh-bin " "
|
||||
sh-bin " ./autogen.sh"))
|
||||
(("\\./configure")
|
||||
(string-append
|
||||
"CONFIG_SHELL=" sh-bin " SHELL=" sh-bin " "
|
||||
sh-bin " ./configure")))))
|
||||
|
||||
(setenv "PATH" path)
|
||||
(setenv "HOME" (string-append app-dir "/.home"))
|
||||
|
||||
@@ -108,12 +108,21 @@
|
||||
"/nostr/relay")))))
|
||||
|
||||
(define (tribes-database-url config database-name)
|
||||
(string-append "ecto://"
|
||||
(tribes-configuration-database-user config)
|
||||
"@/"
|
||||
database-name
|
||||
"?host="
|
||||
(tribes-configuration-database-host config)))
|
||||
(let ((user (tribes-configuration-database-user config))
|
||||
(host (tribes-configuration-database-host config)))
|
||||
(if (string-prefix? "/" host)
|
||||
(string-append "ecto://"
|
||||
user
|
||||
"@localhost/"
|
||||
database-name
|
||||
"?socket_dir="
|
||||
host)
|
||||
(string-append "ecto://"
|
||||
user
|
||||
"@"
|
||||
host
|
||||
"/"
|
||||
database-name))))
|
||||
|
||||
(define (tribes-launcher config command args)
|
||||
(define package
|
||||
|
||||
Reference in New Issue
Block a user