/guile-udev

GNU Guile bindings to libudev.

Primary LanguageCGNU General Public License v3.0GPL-3.0

Guile-Udev

https://github.com/artyom-poptsov/guile-udev/actions/workflows/guile2.2.yml/badge.svg https://github.com/artyom-poptsov/guile-udev/actions/workflows/guile3.0.yml/badge.svg https://github.com/artyom-poptsov/guile-udev/actions/workflows/guix.yml/badge.svg

Guile-Udev is a GNU Guile bindings to libudev.

License

Guile-Udev is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see COPYING file for the terms of GNU General Public License.

Requirements

  • guile-2.2 / guile-3.0
  • libudev >= 239

Build-time dependencies

  • guile-2.2-dev / guile-3.0-dev
  • libudev-dev
  • gettext
  • automake
  • autoconf
  • texinfo
  • pkg-config

Building and installation

GNU Guix

To install the latest release of Guile-Udev on GNU Guix, issue the following command:

$ guix install guile-udev

If you want to install the Git version you can use guix.scm package description that Guile-Udev provides in the repository:

$ guix build -f guix.scm
$ guix package -f guix.scm

Ubuntu GNU/Linux

On Ubuntu GNU/Linux 20.04 you’ll need to install the needed dependencies to be able to build the library with Guile 3.0:

$ sudo apt install \
    gcc            \
    make           \
    guile-3.0-dev  \
    libudev-dev    \
    gettext        \
    automake       \
    autoconf       \
    texinfo        \
    pkg-config     \
    libguile-dev

Manual

To build and install the library, use the following commands:

$ autoreconf -vif
$ ./configure
$ make
$ make install

Usage

Please see the documentation in Info format for API documentation and usage examples – you can open it by typing info guile-udev in the shell, or using C-h i m guile-udev RET combo in Emacs. Also take a look on examples in the examples directory.