GNU bug report logs - #75436
[PATCH] add hyprlock

Previous Next

Package: guix-patches;

Reported by: squishypinkelephant <squishypinkelephant <at> gmail.com>

Date: Wed, 8 Jan 2025 15:50:02 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> friendly-machines.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75436 in the body.
You can then email your comments to 75436 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75436; Package guix-patches. (Wed, 08 Jan 2025 15:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to squishypinkelephant <squishypinkelephant <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 08 Jan 2025 15:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: squishypinkelephant <squishypinkelephant <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: squishypinkelephant <squishypinkelephant <at> gmail.com>
Subject: [PATCH] add hyprlock
Date: Wed,  8 Jan 2025 09:49:05 -0600
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





Information forwarded to guix-patches <at> gnu.org:
bug#75436; Package guix-patches. (Tue, 25 Feb 2025 13:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 75436 <at> debbugs.gnu.org (full text, mbox):

From: "Tanguy Le Carrour" <tanguy <at> bioneland.org>
To: "squishypinkelephant" <squishypinkelephant <at> gmail.com>,
 <75436 <at> debbugs.gnu.org>
Cc: guix-patches-bounces+larch=yhetil.org <at> gnu.org
Subject: Re: [bug#75436] [PATCH] add hyprlock
Date: Tue, 25 Feb 2025 14:38:43 +0100
Hi,

Thanks for working on this!


On Wed Jan 8, 2025 at 4:49 PM CET, squishypinkelephant wrote:
> loosely dependent on the patch i've submit for hyprpaper to pull (guix packages file)

I tried your patch with the following modifications and it works fine on my
machine:

```scheme
    ; …
    (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"))))
    ; …
    (inputs (list cairo
                  file
                  hyprgraphics
                  hyprlang
                  hyprutils
                  hyprwayland-scanner
                  libdrm
                  libjpeg-turbo
                  libwebp
                  libxkbcommon
                  linux-pam
                  mesa
                  pango
                  sdbus-c++
                  wayland
                  wayland-protocols))
```

-- 
Tanguy




Reply sent to Danny Milosavljevic <dannym <at> friendly-machines.com>:
You have taken responsibility. (Sun, 30 Mar 2025 21:52:01 GMT) Full text and rfc822 format available.

Notification sent to squishypinkelephant <squishypinkelephant <at> gmail.com>:
bug acknowledged by developer. (Sun, 30 Mar 2025 21:52:02 GMT) Full text and rfc822 format available.

Message #13 received at 75436-done <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> friendly-machines.com>
To: 75436-done <at> debbugs.gnu.org
Subject: added hyprlock
Date: Sun, 30 Mar 2025 23:51:53 +0200
Hi,

I've merged the patch adding hyprlock to guix master.

Thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Apr 2025 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.