README: Add package names for common distros and what Nix is

Closes: #259

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
This commit is contained in:
Felix Walter 2025-09-01 12:04:47 +02:00
parent 1a54a3cd19
commit 229e943183

View file

@ -34,9 +34,21 @@ The build process and runtime options of µD3TN are outlined on a dedicated [**d
**Dependencies:**
- Git
- GNU `make`, `gcc`, `binutils`
- the `sqlite` and `jansson` development packages
Examples for common distributions:
```sh
# Debian / Ubuntu
[sudo] apt install git build-essential libsqlite3-dev libjansson-dev
# Fedora
[sudo] dnf install git make gcc sqlite-devel jansson-devel
# Arch Linux / Manjaro
[sudo] pacman -Sy git base-devel sqlite jansson
```
**Obtain the code:**
```sh
@ -67,6 +79,9 @@ make posix type=release optimize=yes
**Build with [Nix](https://nixos.wiki/wiki/Nix_package_manager):**
Alternatively to installing everything manually, **Nix** can be used, which automatically takes care
of providing the correct (pinned) dependencies and a working development environment.
```sh
nix --experimental-features 'nix-command flakes' build '.?submodules=1#ud3tn'
```