mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
chore: add nix derivation
This commit is contained in:
18
README.md
18
README.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user