Nix: add deprecation messages for removed/renamed flags

This commit is contained in:
Mihai Fufezan 2023-08-02 00:49:30 +03:00 committed by Mihai Fufezan
parent c1bcbdb3dd
commit e510c6a7fc

View file

@ -33,7 +33,12 @@
wrapRuntimeDeps ? true,
version ? "git",
commit,
# deprecated flags
nvidiaPatches ? false,
hidpiXWayland ? false,
}:
assert lib.assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been renamed `enableNvidiaPatches`";
assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland";
stdenv.mkDerivation {
pname = "hyprland${lib.optionalString enableNvidiaPatches "-nvidia"}${lib.optionalString debug "-debug"}";
inherit version;