summaryrefslogtreecommitdiff
path: root/sigils/packages/hyprland.scm
diff options
context:
space:
mode:
authorSisiutl <sisiutl@egregore.fun>2024-11-12 14:32:24 +0100
committerSisiutl <sisiutl@egregore.fun>2024-11-12 14:32:24 +0100
commit00af6cfea4d340f15b57aa6963acb002aa2b25e4 (patch)
tree2664fad82bb8230dc7ae0e4de4812269780ad2b1 /sigils/packages/hyprland.scm
parentfedf4849e11e21e56513f58139d919f0dd018942 (diff)
fix hyprlock build with EGL library dirs
Diffstat (limited to 'sigils/packages/hyprland.scm')
-rw-r--r--sigils/packages/hyprland.scm18
1 files changed, 13 insertions, 5 deletions
diff --git a/sigils/packages/hyprland.scm b/sigils/packages/hyprland.scm
index ba239cf..b6879a3 100644
--- a/sigils/packages/hyprland.scm
+++ b/sigils/packages/hyprland.scm
@@ -36,9 +36,6 @@
(define mesa-opengl
(package/inherit mesa
- (name "mesa-opengl")
- ;; (source (origin
- ;; (inherit (package-source mesa))))
(inputs (modify-inputs (package-inputs mesa)
(append libglvnd)))
(arguments
@@ -376,8 +373,19 @@ ability to dynamically change wallpapers through sockets")
sdbus-c++-next
wayland
wayland-protocols-next))
- (arguments (list #:tests? #f ;; No tests
- #:build-type "release"))
+ (arguments
+ (list #:tests? #f ;; No tests
+ #:build-type "release"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-program
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin/hyprlock"))
+ (mesa (assoc-ref inputs "mesa")))
+ (wrap-program bin
+ `("__EGL_VENDOR_LIBRARY_DIRS" =
+ (,(string-append mesa "/share/glvnd/egl_vendor.d"))))))))))
(synopsis "GPU-accelerated screen locking utility")
(description "Hyprland's multi-threaded and GPU-accelerated screen locking
utility.")