Pin Tribes packaging to upstream source

This commit is contained in:
2026-03-31 20:40:58 +02:00
parent bd704e5d9c
commit 7e63eb9c2f
5 changed files with 109 additions and 29 deletions

View File

@@ -16,20 +16,27 @@
"neovim"
"btop"))
(define (make-tribes-node-manifest)
(define (getenv/default name default)
(or (getenv name) default))
(define (tribes-node-package)
(let ((source-directory (getenv "TRIBES_SOURCE_DIRECTORY")))
(packages->manifest
(append
(map specification->package %tribes-node-specifications)
(list erlang-28
elixir-otp28
elixir-hex-otp28
ghostty-terminfo)
(if source-directory
(list
(tribes-source-package
(tribes-source-directory->local-file source-directory)
#:version (or (getenv "TRIBES_RELEASE_VERSION") "dev")))
'())))))
(if source-directory
(local-tribes-package
source-directory
#:version (getenv/default "TRIBES_RELEASE_VERSION" "dev")
#:mix-deps-sha256 (getenv "TRIBES_MIX_DEPS_SHA256")
#:raw-mix-deps-sha256 (getenv "TRIBES_RAW_MIX_DEPS_SHA256"))
tribes-package)))
(define (make-tribes-node-manifest)
(packages->manifest
(append
(map specification->package %tribes-node-specifications)
(list erlang-28
elixir-otp28
elixir-hex-otp28
ghostty-terminfo
(tribes-node-package)))))
(make-tribes-node-manifest)