2022-09-01 19:35:50 +02:00
|
|
|
{
|
2023-08-01 22:58:01 +02:00
|
|
|
lib,
|
2022-09-01 19:35:50 +02:00
|
|
|
version,
|
|
|
|
src,
|
|
|
|
wlroots,
|
2022-11-13 20:32:15 +01:00
|
|
|
hwdata,
|
2023-03-03 23:37:00 +01:00
|
|
|
libdisplay-info,
|
2023-08-01 22:58:01 +02:00
|
|
|
libliftoff,
|
2022-09-01 19:35:50 +02:00
|
|
|
enableXWayland ? true,
|
2023-08-01 22:58:01 +02:00
|
|
|
enableNvidiaPatches ? false,
|
2022-09-01 19:35:50 +02:00
|
|
|
}:
|
2023-08-01 22:58:01 +02:00
|
|
|
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];
|
2023-03-09 00:10:01 +01:00
|
|
|
|
2023-08-01 22:58:01 +02:00
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
|
|
"-Wno-error=maybe-uninitialized"
|
|
|
|
];
|
|
|
|
})
|