chore: add nix derivation

This commit is contained in:
2026-09-30 20:18:55 +02:00
parent c54774aec1
commit f93da5b9ec
4 changed files with 135 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
- [Structure](#structure)
- [Documentation](#documentation)
- [Add to project](#add-to-project)
- [Nix flake](#nix-flake)
- [Dependencies](#dependencies)
- [Examples](#examples)
- [Why?](#why)
@@ -36,6 +37,23 @@ Type in:
cargo add --git "https://github.com/szymon-jozef/libnotify-rs"
```
### Nix flake
For nix users, there is also a flake inside. If you want to use it add this to your flake:
```nix
inputs = {
libnotify-rs.url = "github:szymon-jozef/libnotify-rs";
};
```
And then to your derivation/devshell/wherever:
```Nix
packages = [
inputs.libnotify-rs.packages.${stdenv.system}.default
];
```
## Dependencies
To use this crate you need to have installed:
- [libnotify](https://gitlab.gnome.org/GNOME/libnotify), duh (version 0.8.8 >= is supported)