From 5abcdf7404b9ca67a1078d23b2deeb73313550ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Fri, 7 Nov 2025 20:16:03 +0000 Subject: [PATCH] hyprland: add patch to fix plugins compilation --- pkgs/by-name/hy/hyprland/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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