mirror of
https://github.com/logos-co/logos-liblogos.git
synced 2026-08-27 12:51:10 +00:00
* abstract/move some of proxy api logic to cpp-sdk * use qFatal * remove jsonParamToQVariant * simplify using qFatal * remove old interface.h use logos-module * remove local code for now (will be re-added later) * remove unnecessary methods and qDebugs * update flake --------- Co-authored-by: Logos Workspace <logos@workspace.local>
35 lines
843 B
Nix
35 lines
843 B
Nix
# Installs the logos-liblogos headers
|
|
{ pkgs, common, src, logosSdk ? null }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "${common.pname}-headers";
|
|
version = common.version;
|
|
|
|
inherit src;
|
|
inherit (common) meta;
|
|
|
|
# No build phase needed, just install headers
|
|
dontBuild = true;
|
|
dontConfigure = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
# Install headers
|
|
mkdir -p $out/include
|
|
|
|
# Install logos_core.h (main C API header)
|
|
if [ -f src/logos_core/logos_core.h ]; then
|
|
cp src/logos_core/logos_core.h $out/include/
|
|
fi
|
|
|
|
# Also copy SDK headers if available (including logos_mode.h)
|
|
if [ -n "${toString logosSdk}" ] && [ -d "${toString logosSdk}/include" ]; then
|
|
cp -r ${toString logosSdk}/include/* $out/include/ 2>/dev/null || true
|
|
fi
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|