diff --git a/tribes/packages/otp.scm b/tribes/packages/otp.scm index 6a5c9f5..cb193cc 100644 --- a/tribes/packages/otp.scm +++ b/tribes/packages/otp.scm @@ -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) diff --git a/tribes/packages/source.scm b/tribes/packages/source.scm index 32c83b4..9ac23da 100644 --- a/tribes/packages/source.scm +++ b/tribes/packages/source.scm @@ -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")) diff --git a/tribes/services/tribes.scm b/tribes/services/tribes.scm index b5fb67e..41aec45 100644 --- a/tribes/services/tribes.scm +++ b/tribes/services/tribes.scm @@ -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