Subject: [PATCH] gnu: hyprland: Change upstream to prevent crashes.

From: Jakob Kirsch <[email-masked]>
Date: Wed, 26 Mar 2025 21:09:14 +0100

From ede27d1cbd6deb643b0be4908c8e4f7e5ffd3bf5 Mon Sep 17 00:00:00 2001
Message-ID: <ede2[email-masked]>
From: Jakob Kirsch <[email-masked]>
Date: Wed, 26 Mar 2025 21:07:36 +0100
Subject: [PATCH] gnu: hyprland: Change upstream to prevent crashes.

* gnu/packages/wm.scm (hyprland): Change upstream commit to 9ea7642 to prevent multiple possible crashes.

Change-Id: Ibb6439f0d6a4237897e5d3dd67f177f6780464f7
---
 gnu/packages/wm.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 2eefdb4c64..b29aaeb192 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -364,10 +364,11 @@ (define-public hyprland
     (name "hyprland")
     (version "0.48.0")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/hyprwm/Hyprland"
-                                  "/releases/download/v" version
-                                  "/source-v" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                (url "https://github.com/hyprwm/Hyprland")
+                ; current master as of writing, fixes a couple bugs compared to 0.48.0
+                (commit "9ea7642")))
               (modules '((guix build utils)))
               (snippet
                '(begin
@@ -379,7 +380,7 @@ (define-public hyprland
                               "subprojects"))))
               (sha256
                (base32
-                "1adzdlz5ay5wil4l34150ciqjiir3jlyyxikdw3nw7yxb83mss8j"))))
+                "1kywplgk2b49m5axipppg70jrqfzndxhmx5gf7pkq6fg702429y9"))))
     (build-system cmake-build-system)
     (arguments
      (list #:cmake cmake-3.30

base-commit: dbef60edb356246855ad6749936ee511fc1a9b4b
prerequisite-patch-id: 1b6720a384d413ca3a954a1e7b89ca04aa735015
--
2.49.0