Fix Tribes package and service deployment

This commit is contained in:
2026-03-30 22:32:32 +02:00
parent 504071dfd1
commit cb5b4565fc
3 changed files with 26 additions and 7 deletions

View File

@@ -46,6 +46,10 @@
(inherit elixir) (inherit elixir)
(name "elixir-otp28") (name "elixir-otp28")
(version "1.19.5") (version "1.19.5")
(arguments
(substitute-keyword-arguments (package-arguments elixir)
((#:tests? _ #f)
#f)))
(source (source
(origin (origin
(method url-fetch) (method url-fetch)

View File

@@ -195,7 +195,13 @@ the local Parrhesia path dependency."
(when (file-exists? libsecp-makefile) (when (file-exists? libsecp-makefile)
(substitute* libsecp-makefile (substitute* libsecp-makefile
(("\\./autogen\\.sh") (("\\./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 "PATH" path)
(setenv "HOME" (string-append app-dir "/.home")) (setenv "HOME" (string-append app-dir "/.home"))

View File

@@ -108,12 +108,21 @@
"/nostr/relay"))))) "/nostr/relay")))))
(define (tribes-database-url config database-name) (define (tribes-database-url config database-name)
(string-append "ecto://" (let ((user (tribes-configuration-database-user config))
(tribes-configuration-database-user config) (host (tribes-configuration-database-host config)))
"@/" (if (string-prefix? "/" host)
database-name (string-append "ecto://"
"?host=" user
(tribes-configuration-database-host config))) "@localhost/"
database-name
"?socket_dir="
host)
(string-append "ecto://"
user
"@"
host
"/"
database-name))))
(define (tribes-launcher config command args) (define (tribes-launcher config command args)
(define package (define package