mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19:45:58 +01:00
c1bcbdb3dd
- remove `hidpiXWayland` option - rename `nvidiaPatches` -> `enableNvidiaPatches` for consistency
28 lines
574 B
Nix
28 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"
|
|
];
|
|
})
|