Skip to content
libclipboard wrapper for Nim
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial version Jul 13, 2018 Install nimgen, clean tests, c99 Nov 3, 2018
nimclipboard.cfg gnu11 instead of c99 Nov 3, 2018
nimclipboard.nimble C test compilation Nov 3, 2018

Nimclipboard is a Nim wrapper for libclipboard.

Nimclipboard is distributed as a Nimble package and depends on nimgen and c2nim to generate the wrappers. The libclipboard source code is downloaded using Git so having git in the path is required.


Nimclipboard can be installed via Nimble:

> nimble install nimclipboard

This will download, wrap and install nimclipboard in the standard Nimble package location, typically ~/.nimble. Once installed, it can be imported into any Nim program.


Module documentation can be found here.

import nimclipboard/libclipboard

var cb = clipboard_new(nil)

echo cb.clipboard_set_text("nimclipboard rocks")
echo cb.clipboard_text()


Refer to the tests directory for examples on how the library can be used.


Nimclipboard wraps the libclipboard source code and all licensing terms of libclipboard apply to the usage of this package.

Credits go out to c2nim as well without which this package would be greatly limited in its abilities.


Nimclipboard is a work in progress and any feedback or suggestions are welcome. It is hosted on GitHub with an MIT license so issues, forks and PRs are most appreciated.

You can’t perform that action at this time.