From b9eb466764856b5fd4075776792f1b4362afaed1 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 4 Aug 2023 15:21:46 +0800 Subject: [PATCH] gnu: hyprland: Update to 0.28.0. * rosenthal/packages/wm.scm (hyprland): Update to 0.28.0. <#:phases>: Substitute program paths. Substitute GIT_BRANCH, GIT_COMMIT_MESSAGE and GIT_TAG. [inputs]: Add pciutils. (wlroots-for-hyprland): Update to 0.16.0-669.e8d545a --- rosenthal/packages/wm.scm | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/rosenthal/packages/wm.scm b/rosenthal/packages/wm.scm index 6c9e94a..4e8ea66 100644 --- a/rosenthal/packages/wm.scm +++ b/rosenthal/packages/wm.scm @@ -84,8 +84,8 @@ command line tool called @code{udcli} that incorporates the library.") (define wlroots-for-hyprland (let ((base wlroots) - (revision "660") - (commit "7791ffe0584c4ac13c170e1661ce33bdbd4a9b9e")) + (revision "669") + (commit "e8d545a9770a2473db32e0a0bfa757b05d2af4f3")) (package (inherit base) (name "wlroots") @@ -98,7 +98,7 @@ command line tool called @code{udcli} that incorporates the library.") (file-name (git-file-name name version)) (sha256 (base32 - "1q85iadv6rad97hm26amixr4zcp7kws57f438fnxg44v0saww56x")))) + "1pz8i3g24flswvv762jxnhff67jgl2nvqrj03f84fi1srf769zl2")))) (propagated-inputs (modify-inputs (package-propagated-inputs base) (append libdisplay-info-for-hyprland libxcb xcb-util-renderutil) @@ -152,11 +152,11 @@ protocols used by Hyprland to bridge the aforementioned gap.") (base32 "14nijw02lb0c4h06adki0w7amgxg1m0qj48ds7iq4bq6fkl1m5l0")))) (define-public hyprland - (let ((commit "b08b72358ad549fd066e5be0fc3aa4c9df367607")) + (let ((commit "9654749244117f7f150c6f2a2ce4dede6e8cbb25")) (package (name "hyprland") ;; NOTE: Remember to update commit hash ^ - (version "0.27.2") + (version "0.28.0") (source (origin (method git-fetch) (uri (git-reference @@ -167,26 +167,38 @@ protocols used by Hyprland to bridge the aforementioned gap.") hyprland-portals-patch)) (sha256 (base32 - "0jyp4amy5hryczxa73lc5dpvarqxb6r1zsrqzwffan1nrhhqzsyq")))) + "1ipg3f1js291vyh9888qsy5hgqqj10m8zzc1y8i1ihgikyzsqlmp")))) (build-system meson-build-system) (arguments (list #:build-type "release" #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'fix-default-wallpaper-path - (lambda _ + (add-after 'unpack 'fix-path + (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/render/OpenGL.cpp" - (("/usr") #$output)))) + (("/usr") #$output)) + (substitute* (find-files "src" "\\.cpp") + (("(execAndGet\\(\\(?\")\\<(cat|fc-list|lspci|nm)\\>" + _ pre cmd) + (format #f "~a~a" + pre + (search-input-file + inputs (string-append "/bin/" cmd))))))) (add-after 'unpack 'substitute-meson-build (lambda _ (substitute* "meson.build" (("git") "true") - (("@GIT_DIRTY@") "") - (("@GIT_COMMIT_HASH@") #$commit))))))) + (("@GIT_BRANCH@") "main") + (("@GIT_COMMIT_HASH@") #$commit) + (("@GIT_COMMIT_MESSAGE@") "?") + (("@GIT_DIRTY@") "")) + (substitute* (find-files "src" "\\.cpp") + (("GIT_TAG") (format #f "\"v~a\"" #$version)))))))) (native-inputs (list gcc-12 jq pkg-config)) (inputs (list hyprland-protocols pango + pciutils udis86-for-hyprland wlroots-for-hyprland)) (home-page "https://hyprland.org")