mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-29 18:53:19 +03:00
c1bcbdb3dd
- remove `hidpiXWayland` option - rename `nvidiaPatches` -> `enableNvidiaPatches` for consistency
29 lines
574 B
Nix
29 lines
574 B
Nix
{
|
|
lib,
|
|
version,
|
|
src,
|
|
wlroots,
|
|
hwdata,
|
|
libdisplay-info,
|
|
libliftoff,
|
|
enableXWayland ? true,
|
|
enableNvidiaPatches ? false,
|
|
}:
|
|
wlroots.overrideAttrs (old: {
|
|
inherit version src enableXWayland;
|
|
|
|
pname = "${old.pname}-hyprland${lib.optionalString enableNvidiaPatches "-nvidia"}";
|
|
|
|
patches =
|
|
(old.patches or [])
|
|
++ (lib.optionals enableNvidiaPatches [
|
|
./patches/wlroots-nvidia.patch
|
|
]);
|
|
|
|
buildInputs = old.buildInputs ++ [hwdata libliftoff libdisplay-info];
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=maybe-uninitialized"
|
|
];
|
|
})
|