Skip to content

Fix tutorial v2#51

Merged
dlipicar merged 2 commits into
releases/v2from
fix-tutorial-v2
May 28, 2026
Merged

Fix tutorial v2#51
dlipicar merged 2 commits into
releases/v2from
fix-tutorial-v2

Conversation

@dlipicar
Copy link
Copy Markdown
Contributor

@dlipicar dlipicar commented May 28, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2026 15:12
@dlipicar dlipicar changed the base branch from master to releases/v2 May 28, 2026 15:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “wrapping a C library” tutorial and the logos-calc-module example to build the external C library from source during the Nix build (via externalLibInputs + build_command/output_pattern) instead of requiring a pre-built .so/.dylib checked into lib/.

Changes:

  • Document and implement building libcalc from source using a lib/Makefile + metadata.json build_command/output_pattern.
  • Update the example module flake to pass calc-src via externalLibInputs.
  • Add module-level .gitignore entries for Nix/CMake outputs and the local lib/build/ directory.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tutorial-wrapping-c-library.md Updates Step 1.5 and Nix integration docs to build/stage the C library from source.
logos-calc-module/metadata.json Switches external library config from vendor_path to build_command + output_pattern.
logos-calc-module/lib/Makefile Adds a Makefile used by Nix to compile libcalc as a shared library.
logos-calc-module/flake.nix Adds calc-src and wires it into externalLibInputs.
logos-calc-module/.gitignore Ignores build outputs (result*, build/, lib/build/).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread logos-calc-module/lib/Makefile Outdated
Comment thread tutorial-wrapping-c-library.md Outdated
Comment thread tutorial-wrapping-c-library.md
@dlipicar dlipicar merged commit 8165713 into releases/v2 May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants