qt-chat-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 88b2e5dfc5d6c8d41de71cb0991cb8b601a63f36
parent 4c669e2e8222353017a186cde6c34dcfc5f8a474
Author: Silas Brack <silasbrack@Silass-MacBook-Pro.local>
Date:   Mon, 26 Jan 2026 22:13:01 +0100

Fix trailbase file

Diffstat:
Mtrailbase.nix | 32+++++++++++++++++++++++++++-----
1 file changed, 27 insertions(+), 5 deletions(-)

diff --git a/trailbase.nix b/trailbase.nix @@ -6,14 +6,36 @@ , openssl }: +let + # Map Nix system to TrailBase release architecture + platformInfo = { + "x86_64-linux" = { + arch = "x86_64_linux"; + sha256 = "sha256-cHm3gDDiitJgd8QFenbfAOfEF5ynGjBrSQxWm0qs4wc="; + }; + "aarch64-linux" = { + arch = "arm64_linux"; + sha256 = ""; + }; + "x86_64-darwin" = { + arch = "x86_64_apple_darwin"; + sha256 = ""; + }; + "aarch64-darwin" = { + arch = "arm64_apple_darwin"; + sha256 = "sha256-bUTGA9WJohFjhPXt5bOdBuy8z5TytWJ5hLJX2yMYvbM="; + }; + }; + + platform = platformInfo.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"); +in stdenv.mkDerivation rec { pname = "trailbase"; - version = "0.23.0"; # Update to latest version + version = "0.23.0"; src = fetchzip { - # url = "https://github.com/trailbaseio/trailbase/releases/download/v${version}/trailbase-x86_64-unknown-linux-gnu.tar.gz"; - url = "https://github.com/trailbaseio/trailbase/releases/download/v${version}/trailbase_v${version}_x86_64_linux.zip"; - sha256 = "sha256-cHm3gDDiitJgd8QFenbfAOfEF5ynGjBrSQxWm0qs4wc="; + url = "https://github.com/trailbaseio/trailbase/releases/download/v${version}/trailbase_v${version}_${platform.arch}.zip"; + sha256 = platform.sha256; stripRoot = false; }; @@ -39,7 +61,7 @@ stdenv.mkDerivation rec { description = "A blazingly fast, open-source application server built on Rust & SQLite"; homepage = "https://github.com/trailbaseio/trailbase"; license = licenses.osl3; - platforms = [ "x86_64-linux" ]; + platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; maintainers = [ ]; }; }