guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add hyprlock.


From: guix-commits
Subject: 02/02: gnu: Add hyprlock.
Date: Sun, 30 Mar 2025 17:51:54 -0400 (EDT)

dannym pushed a commit to branch master
in repository guix.

commit e5bfbd865035382ecb32b8d050cf998209be72a2
Author: squishypinkelephant <squishypinkelephant@gmail.com>
AuthorDate: Sun Mar 30 23:47:32 2025 +0200

    gnu: Add hyprlock.
    
    * gnu/packages/xdisorg.scm (hyprlock): New variable.
    
    Co-authored-by: Tanguy Le Carrour <tanguy@bioneland.org>
    Change-Id: I208cf75393deab40c1420c37b2f09d2835c858cc
    Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
---
 gnu/packages/xdisorg.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index e83f96978c..302c0434ca 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -3796,6 +3796,57 @@ This package is the fork of hsetroot by Hyriand.")
      "This package provides Hyprland cursor format, library and utilities.")
     (license license:bsd-3)))
 
+(define-public hyprlock
+  (package
+   (name "hyprlock")
+   (version "0.7.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 "03ivr5nsjwiwvpdxpjnldwawy8sx8qgwhs57242xkb0zz0w0gvsk"))))
+   (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
+                 hyprgraphics
+                 hyprlang
+                 hyprutils
+                 hyprwayland-scanner
+                 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
+    "This package provides Hyprland's simple, yet multi-threaded and
+GPU-accelerated screen locking utility.")
+   (license license:bsd-3)))
+
 (define-public hyprpaper
   (package
    (name "hyprpaper")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]