https://github.com/artyom-poptsov/guile-udev
GNU Guile bindings to libudev.
https://github.com/artyom-poptsov/guile-udev
guile scheme udev
Last synced: 5 months ago
JSON representation
GNU Guile bindings to libudev.
- Host: GitHub
- URL: https://github.com/artyom-poptsov/guile-udev
- Owner: artyom-poptsov
- License: gpl-3.0
- Created: 2020-07-25T15:21:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T05:41:29.000Z (over 2 years ago)
- Last Synced: 2026-02-13T08:52:02.640Z (5 months ago)
- Topics: guile, scheme, udev
- Language: C
- Homepage:
- Size: 164 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- Funding: .github/FUNDING.yml
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
README
# -*- mode: org; -*-
* 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 [[https://www.gnu.org/software/guile/][GNU Guile]] bindings to [[https://en.wikipedia.org/wiki/Udev][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 [[https://guix.gnu.org/][GNU Guix]], issue the following
command:
#+BEGIN_EXAMPLE shell
$ guix install guile-udev
#+END_EXAMPLE
If you want to install the Git version you can use =guix.scm= package
description that Guile-Udev provides in the repository:
#+BEGIN_EXAMPLE shell
$ guix build -f guix.scm
$ guix package -f guix.scm
#+END_EXAMPLE
*** 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:
#+BEGIN_EXAMPLE shell
$ sudo apt install \
gcc \
make \
guile-3.0-dev \
libudev-dev \
gettext \
automake \
autoconf \
texinfo \
pkg-config \
libguile-dev
#+END_EXAMPLE
*** Manual
To build and install the library, use the following commands:
#+BEGIN_EXAMPLE shell
$ autoreconf -vif
$ ./configure
$ make
$ make install
#+END_EXAMPLE
** 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.