Files
logos-view-module-runtime/flake.nix
Dario LipicarandClaude Opus 4.8 710270c193 Retarget to the qt-split SDK stack (logos-qt-sdk + logos-protocol) (#11)
* Retarget to the qt-split SDK stack (logos-qt-sdk + logos-protocol)

logos-cpp-sdk::logos_sdk no longer exists after the Qt split: the Qt
developer layer (LogosAPI, provider objects) moved to logos-qt-sdk and
the transport/consumer core into the logos-protocol library. Both
targets (the static runtime lib and ui-host) now link
logos-qt-sdk::logos_qt_sdk (which carries logos-protocol transitively)
plus the header-only logos-cpp-sdk::logos_headers.

flake.nix gains logos-protocol/logos-qt-sdk inputs threaded through
nix/{default,test}.nix; the lock pins the extraction-chain branch revs
(temporary — re-lock against masters when the chain merges).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* lock: bump cpp-sdk to the qt-free branch head with the protocol lock fix

This flake declares no follows between logos-cpp-sdk and logos-protocol,
so cpp-sdk's OWN lock governs its nested protocol; b86ff877 still pinned
the P1 protocol rev, which no longer compiles (LogosProviderPlugin moved
in the qt split). 7272c73 carries the corrected pin. Temporary — drop
when the chain merges.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(tests): retarget the unit-test link to the qt-split SDK targets

tests/CMakeLists.txt still linked bare logos_sdk (only built with
LOGOS_VIEW_RUNTIME_BUILD_TESTS=ON, so the package build verified earlier
missed it). The runtime lib's PUBLIC link interface already carries the
qt-sdk/protocol targets; the explicit entries replace the dead archive.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* lock: qt-split chain fully merged — pins advance to masters (cpp-sdk 87abcd8, protocol 9de4165, qt-sdk 8d0e5d9)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 23:58:19 -03:00

64 lines
2.3 KiB
Nix

{
description = "logos-view-module-runtime — shared library for loading and running Logos UI modules";
inputs = {
logos-nix.url = "github:logos-co/logos-nix";
nixpkgs.follows = "logos-nix/nixpkgs";
logos-cpp-sdk = {
url = "github:logos-co/logos-cpp-sdk";
inputs.logos-nix.follows = "logos-nix";
};
logos-protocol = {
url = "github:logos-co/logos-protocol";
inputs.logos-nix.follows = "logos-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
logos-qt-sdk = {
url = "github:logos-co/logos-qt-sdk";
inputs.logos-nix.follows = "logos-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.logos-protocol.follows = "logos-protocol";
inputs.logos-cpp-sdk.follows = "logos-cpp-sdk";
};
};
outputs = { self, nixpkgs, logos-nix, logos-cpp-sdk, logos-protocol, logos-qt-sdk }:
let
systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f {
inherit system;
pkgs = import nixpkgs { inherit system; };
logosSdk = logos-cpp-sdk.packages.${system}.default;
logosQtSdk = logos-qt-sdk.packages.${system}.default;
logosProtocol = logos-protocol.packages.${system}.default;
});
in
{
packages = forAllSystems ({ pkgs, logosSdk, logosQtSdk, logosProtocol, ... }: {
default = import ./nix/default.nix { inherit pkgs logosSdk logosQtSdk logosProtocol; };
tests = import ./nix/test.nix { inherit pkgs logosSdk logosQtSdk logosProtocol; };
});
checks = forAllSystems ({ pkgs, logosSdk, logosQtSdk, logosProtocol, ... }: {
default = import ./nix/test.nix { inherit pkgs logosSdk logosQtSdk logosProtocol; };
});
devShells = forAllSystems ({ pkgs, logosSdk, logosQtSdk, logosProtocol, ... }: {
default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.cmake pkgs.ninja pkgs.pkg-config ];
buildInputs = [
pkgs.qt6.qtbase
pkgs.qt6.qtremoteobjects
pkgs.qt6.qtdeclarative
];
shellHook = ''
export LOGOS_CPP_SDK_ROOT="${logosSdk}"
export LOGOS_QT_SDK_ROOT="${logosQtSdk}"
export LOGOS_PROTOCOL_ROOT="${logosProtocol}"
echo "logos-view-module-runtime dev shell"
'';
};
});
};
}