From c36c2cba513874e47341d555f507eab8b1f1ca1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C8=98erb=C4=83nescu?= Date: Wed, 3 Dec 2025 12:50:03 +0100 Subject: [PATCH] pyprland: add patch that fixes integration with hyprland --- pkgs/by-name/py/pyprland/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/py/pyprland/package.nix b/pkgs/by-name/py/pyprland/package.nix index 509225403b6b..2a7762fded35 100644 --- a/pkgs/by-name/py/pyprland/package.nix +++ b/pkgs/by-name/py/pyprland/package.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch, python3Packages, nix-update-script, }: @@ -19,6 +20,16 @@ python3Packages.buildPythonApplication rec { hash = "sha256-rtAw6tdZY0BKb6Qjk/LHYYMB9nCPzkmw95wdjhJ191s="; }; + patches = [ + # Remove this patch from versions higher than 2.4.7-17. + # Fixes integration with pyprland 0.52.0+. + (fetchpatch { + url = "https://github.com/hyprland-community/pyprland/commit/21c0479a52df41f15bb798e28f67daab8b1ad0e3.patch"; + hash = "sha256-QwEGdraSZmz9goCBTKQLArqQse1TP8b188uiIISshWc="; + includes = [ "pyprland/plugins/pyprland.py" ]; + }) + ]; + nativeBuildInputs = with python3Packages; [ poetry-core ]; propagatedBuildInputs = with python3Packages; [ aiofiles ];