unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#75436] [PATCH] add hyprlock
@ 2025-01-08 15:49 squishypinkelephant
  0 siblings, 0 replies; only message in thread
From: squishypinkelephant @ 2025-01-08 15:49 UTC (permalink / raw)
  To: 75436; +Cc: squishypinkelephant

loosely dependent on the patch i've submit for hyprpaper to pull (guix packages file)

Change-Id: I541ac276c25b51f66aa5fd5d275e7b3897d5d6a1
---
 gnu/packages/xdisorg.scm | 47 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 17ec74ca63..61ff5546ae 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -3707,6 +3707,53 @@ (define-public hyprcursor
      "This package provides Hyprland cursor format, library and utilities.")
     (license license:bsd-3)))
 
+(define-public hyprlock
+  (package
+    (name "hyprlock")
+    (version "0.5.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/hyprwm/hyprlock")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+              (base32
+                "07404h6w5934yimpwb0p9dxg1w3nv702bckm4m99jbjrda6jqhmi"))))
+    (build-system cmake-build-system)
+    (arguments
+      `(#:cmake ,cmake-3.30
+        #:phases
+        (modify-phases %standard-phases
+          ;; remove when fixed
+          (add-after 'unpack 'fixgldiscover
+            (lambda* (#:key inputs native-inputs #:allow-other-keys)
+              (substitute* "CMakeLists.txt"
+                (("  opengl") "  gl")
+                (("OpenGL REQUIRED") "OpenGL REQUIRED COMPONENTS GLES2 EGL")))))
+        #:tests? #f)) ;; no test
+    (native-inputs (list gcc-14 pkg-config))
+    (inputs
+        (list cairo
+        file
+        hyprlang
+        hyprutils
+        libdrm
+        libjpeg-turbo
+        libwebp
+        libxkbcommon
+        linux-pam
+        mesa
+        pango
+        sdbus-c++
+        wayland
+        wayland-protocols))
+    (home-page "https://hyprland.org/")
+    (synopsis "Hyprland's screen locking utility")
+    (description
+    "Hyprland's simple, yet multi-threaded and GPU-accelerated screen locking utility.")
+    (license license:bsd-3)))
+
 (define-public hyprpaper
   (package
     (name "hyprpaper")

base-commit: 43d64438c8c31600e392534d9373ff30dbf3bb05
-- 
2.47.1





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-08 15:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 15:49 [bug#75436] [PATCH] add hyprlock squishypinkelephant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).