mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 07:35:57 +01:00
README: add Nix warning
This commit is contained in:
parent
2425e8f541
commit
482b569d28
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -29,6 +29,22 @@ cmake --build build
|
|||
sudo cmake --install build
|
||||
```
|
||||
|
||||
## Nix
|
||||
|
||||
> [!CAUTION] XDPH should not be used from this flake directly!
|
||||
>
|
||||
> Instead, use it from the [Hyprland flake](https://github.com/hyprwm/Hyprland).
|
||||
|
||||
There are two reasons for the above:
|
||||
|
||||
1. Hyprland depends on XDPH, but XDPH also depends on Hyprland. This results in
|
||||
a cyclic dependency, which is a nightmare. To counter this, we use the
|
||||
Nixpkgs Hyprland package in this flake, so that it can be later consumed by
|
||||
the Hyprland flake while overriding the Hyprland package.
|
||||
2. Even if you manually do all the overriding, you may still get it wrong and
|
||||
lose out on the Cachix cache (which has XDPH as exposed by the Hyprland
|
||||
flake).
|
||||
|
||||
## Running, FAQs, etc.
|
||||
|
||||
See
|
||||
|
|
Loading…
Reference in a new issue