You've already forked guix-tribes
Fix Tribes package and service deployment
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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"))
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user