qt-chat-app

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

commit 4c669e2e8222353017a186cde6c34dcfc5f8a474
parent d40ad033553d3a3f68d8c07e699ff3d4f94b633b
Author: Silas Brack <silasbrack@gmail.com>
Date:   Mon, 26 Jan 2026 21:57:41 +0100

Make platform-agnostic

Diffstat:
Mderivation_demo.nix | 1-
Mflake.lock | 8++++----
Mflake.nix | 7++++---
Atrailbase.nix | 46++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 54 insertions(+), 8 deletions(-)

diff --git a/derivation_demo.nix b/derivation_demo.nix @@ -52,7 +52,6 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Beegram, a messaging application built using Qt."; license = licenses.mit; - platforms = platforms.darwin; maintainers = [ ]; }; } diff --git a/flake.lock b/flake.lock @@ -2,16 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1735564410, - "narHash": "sha256-HB/FA0+1gpSs8+/boEavrGJH+Eq08/R2wWNph1sM1Dg=", + "lastModified": 1769089682, + "narHash": "sha256-9yA/LIuAVQq0lXelrZPjLuLVuZdm03p8tfmHhnDIkms=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1e7a8f391f1a490460760065fa0630b5520f9cf8", + "rev": "078d69f03934859a181e81ba987c2bb033eebfc5", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixpkgs-24.05-darwin", + "ref": "nixos-25.11", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix @@ -3,13 +3,13 @@ inputs = { # Pin to a version compatible with macOS 13 - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; }; outputs = { self, nixpkgs }: let # Support both Intel and Apple Silicon Macs - systems = [ "x86_64-darwin" "aarch64-darwin" ]; + systems = [ "x86_64-darwin" "aarch64-darwin" "x86_64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs systems; in { @@ -34,8 +34,9 @@ qt6.qtbase qt6.qtdeclarative qt6.qt5compat - qtkeychain + # qtkeychain qt6Packages.wrapQtAppsHook + (pkgs.callPackage ./trailbase.nix { }) ]; }; } diff --git a/trailbase.nix b/trailbase.nix @@ -0,0 +1,46 @@ +{ lib +, stdenv +, fetchzip +, autoPatchelfHook +, zlib +, openssl +}: + +stdenv.mkDerivation rec { + pname = "trailbase"; + version = "0.23.0"; # Update to latest version + + 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="; + stripRoot = false; + }; + + nativeBuildInputs = [ autoPatchelfHook ]; + + buildInputs = [ + stdenv.cc.cc.lib + zlib + openssl + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp trail $out/bin/ + chmod +x $out/bin/trail + + runHook postInstall + ''; + + meta = with lib; { + 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" ]; + maintainers = [ ]; + }; +} +