Added instructions for nix-shell. Also points out that git is a requirement for building

This commit is contained in:
Johan Tidén 2023-11-13 08:59:39 +01:00
parent 94f6dbab53
commit 00ff307a6b

View File

@ -15,7 +15,7 @@ Default location for the configuration file is /etc/logid.cfg, but another can b
## Dependencies
This project requires a C++20 compiler, `cmake`, `libevdev`, `libudev`, `glib`, and `libconfig`.
This project requires a C++20 compiler, `cmake`, `libevdev`, `libudev`, `glib`, `git`, and `libconfig`.
For popular distributions, I've included commands below.
**Arch Linux:** `sudo pacman -S base-devel cmake libevdev libconfig systemd-libs glib2`
@ -30,6 +30,8 @@ For popular distributions, I've included commands below.
**openSUSE:** `sudo zypper install cmake libevdev-devel systemd-devel libconfig-devel gcc-c++ libconfig++-devel libudev-devel glib2-devel`
**Nix:** `nix-shell --pure -p cmake libevdev glib libconfig libudev-zero pcre pcre2 libuuid libselinux libsepol git`
## Building
To build this project, run: