From ab1436b980e30e768eb8fc386c978ee49e7c9247 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 8 Mar 2026 17:42:15 +0100 Subject: [PATCH] monado: backport cylinder aspect ratio fix Resolves issues with wayvr See https://github.com/NixOS/nixpkgs/pull/489154#issuecomment-4018732528 Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/mo/monado/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/mo/monado/package.nix b/pkgs/by-name/mo/monado/package.nix index 1312e6132f3f..4f5cced5162d 100644 --- a/pkgs/by-name/mo/monado/package.nix +++ b/pkgs/by-name/mo/monado/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitLab, + fetchpatch, writeText, bluez, cjson, @@ -73,6 +74,16 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-hUSm76PV+FhvzhiYMUbGcNDQMK1TZCPYh1PNADJmdSU="; }; + patches = [ + # Resolves issues with wayvr + # See https://github.com/NixOS/nixpkgs/pull/489154#issuecomment-4018732528 + (fetchpatch { + name = "monado-cylinder-aspectRatio.patch"; + url = "https://gitlab.freedesktop.org/monado/monado/-/commit/69834fe93b84640170f8efa54b4700e5e0dc03c1.diff"; + hash = "sha256-6lD4j7CMQk52btfxD8hOm0GWZaOxSgc1jel9hyXqktA="; + }) + ]; + nativeBuildInputs = [ cmake doxygen