Files
logos-liblogos/nix/include.nix
T
Iuri MatiasandLogos Workspace 9a17418613 Abstract proxy api (#83)
* 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>
2026-03-25 09:31:06 -04:00

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
'';
}