diff --git a/pkgs/by-name/hy/hyprland/package.nix b/pkgs/by-name/hy/hyprland/package.nix index 21cf792817bd..f9193601996b 100644 --- a/pkgs/by-name/hy/hyprland/package.nix +++ b/pkgs/by-name/hy/hyprland/package.nix @@ -3,6 +3,7 @@ stdenv, stdenvAdapters, fetchFromGitHub, + fetchpatch, pkg-config, makeWrapper, cmake, @@ -101,6 +102,14 @@ customStdenv.mkDerivation (finalAttrs: { hash = "sha256-5jYD01l95U/HTfZMAccAvhSnrWgHIRWEjLi9R4wPIVI="; }; + patches = [ + # NOTE: this is required to make plugins compile. should be removed with the next release. + (fetchpatch { + url = "https://github.com/hyprwm/Hyprland/commit/522edc87126a48f3ce4891747b6a92a22385b1e7.patch"; + hash = "sha256-0BAlAVW5isa8gd833PjZdqO/uEpDqdTlu0iZbLP4U9s="; + }) + ]; + postPatch = '' # Fix hardcoded paths to /usr installation sed -i "s#/usr#$out#" src/render/OpenGL.cpp