dbus
dbus bindings for Nim
Summary
| Latest Version | 0.0.1 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-31 07:14 |
Tags
Authors
- Michał Zieliński <michal@zielinscy.org.pl>
Installation
nimble install dbus
choosenim install dbus
git clone https://github.com/zielmicha/nim-dbus
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| dbus | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 0.19.0 | No |
Source
| Repository | https://github.com/zielmicha/nim-dbus |
|---|---|
| Homepage | https://github.com/zielmicha/nim-dbus |
| Registry Source | nimble_official |
README
nim-dbus
libdbus binding for Nim
Testing
The tests rely on the Python dbus service found in tests/simple_service.py. Use one of the sections below to get an environment prepared to run the Python script, then run:
python tests/simple_service.py
Then run
nimble test
Docker
docker run --rm -it --cap-add ipc_lock -v $(pwd):/code -w /code nimlang/nim /bin/bash
Within the running container:
apt-get update -q
apt-get install -y dbus libdbus-1-dev python-gi python-dbus
dbus-run-session -- bash
python tests/simple_service.py &
Resources
http://www.matthew.ath.cx/misc/dbus - libdbus tutorial
http://lists.freedesktop.org/archives/dbus/2007-October/008859.html - simplest loop