Hyprland/nix/wlroots.nix

29 lines
574 B
Nix
Raw Normal View History

{
lib,
version,
src,
wlroots,
2022-11-13 20:32:15 +01:00
hwdata,
2023-03-03 23:37:00 +01:00
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];
2023-03-09 00:10:01 +01:00
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=maybe-uninitialized"
];
})