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)
(name "elixir-otp28")
(version "1.19.5")
(arguments
(substitute-keyword-arguments (package-arguments elixir)
((#:tests? _ #f)
#f)))
(source
(origin
(method url-fetch)

View File

@@ -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"))

View File

@@ -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