mirror of
https://git.sr.ht/~ehmry/nim_genode
synced 2026-01-15 10:01:42 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| genode.nimble | ||
| LICENSE | ||
| README.md | ||
Genode platform library for Nim
This is a Nim library for interacting with the Genode OS.
Simply adding import genode to a project is also sufficient
for passing the necessary compiler flags thru the toolchain.
A pattern for use with Nimble:
...
srcDir = "src"
bin = @["foo"]
requires "nim >= 1.0.0", "genode"
task genode, "Build for Genode":
exec "nim cpp --os:genode -d:posix -o:foo.genode src/foo"
This adds a task for building a Genode binary invoked by calling nimble genode
through the shell. The compilier will invoke pkg-config and thus needs
PKG_CONFIG_PATH set to point at the pkgconfig files supplied with a Genode SDK,
so the command to use is probably closer to
PKG_CONFIG_PATH="/opt/genode-sdk-x86_64/pkgconfig" nimble genode.
See https://github.com/ehmry/genode/releases/ for a compatible SDK.