GNU bug report logs - #63567
[PATCH] gnu: Add wf-shadow

Previous Next

Package: guix-patches;

Reported by: cobra <at> vern.cc

Date: Thu, 18 May 2023 09:38:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 63567 AT debbugs.gnu.org.

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#63567; Package guix-patches. (Thu, 18 May 2023 09:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to cobra <at> vern.cc:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 18 May 2023 09:38:02 GMT) Full text and rfc822 format available.

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

From: cobra <at> vern.cc
To: guix-patches <at> gnu.org
Cc: "Skylar \"The Cobra\" Widulski" <cobra <at> vern.cc>
Subject: [PATCH] gnu: Add wf-shadow
Date: Thu, 18 May 2023 00:02:59 -0400
From: "Skylar \"The Cobra\" Widulski" <cobra <at> vern.cc>

Signed-off-by: Skylar "The Cobra" Widulski <cobra <at> vern.cc>
---
 gnu/packages/video.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 0abc153c60..f31eee4a43 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -64,6 +64,7 @@
 ;;; Copyright © 2022 Chadwain Holness <chadwainholness <at> gmail.com>
 ;;; Copyright © 2022 Andy Tai <atai <at> atai.org>
 ;;; Copyright © 2023 Ott Joon <oj <at> vern.cc>
+;;; Copyright © 2023 Skylar Widulski <cobra <at> vern.cc>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -202,6 +203,7 @@ (define-module (gnu packages video)
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages wget)
+  #:use-module (gnu packages wm)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xiph)
@@ -5658,3 +5660,32 @@ (define-public svtplay-dl
 broadcasters including SVT Play, Sveriges Radio, TV4 Play, along with many
 others.")
     (license license:expat)))
+
+(define-public wf-shadow
+  (package
+    (name "wf-shadow")
+    (version "1.5.5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://codeberg.org/cobra/wf-shadow")
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+                (base32
+                  "1qyf1w9vw5xswf9vw1267l5zh1dckilbmcm7qj1v762n2saw103p"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan
+       '(("wf-shadow" "bin/")
+         ("wf-shadow-tui" "bin/")
+         ("doc/wf-shadow.1" "share/man/man1/")
+         ("doc/wf-shadow-tui.1" "share/man/man1/"))))
+    (inputs (list bash wf-recorder wofi dialog wlr-randr))
+    (home-page "https://codeberg.org/cobra/wf-shadow")
+    (synopsis "Make instant-replay easy on wlroots based compositors")
+    (description
+      "@code{wf-shadow} is a script written in order to fill the void in
+instant-replay software for Wayland, specifically wlroots compositors.  It uses
+wf-recorder and wofi in order to accomplish the task.")
+    (license license:gpl3+)))
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63567; Package guix-patches. (Tue, 20 Jun 2023 21:03:02 GMT) Full text and rfc822 format available.

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

From: Jelle Licht <jlicht <at> fsfe.org>
To: 63567 <at> debbugs.gnu.org
Cc: Skylar The Cobra Widulski <cobra <at> vern.cc>
Subject: Re: [bug#63567] [PATCH] gnu: Add wf-shadow
Date: Tue, 20 Jun 2023 23:02:23 +0200
Hi cobra,

Thanks for the patch! Some comments follow.

cobra--- via Guix-patches via <guix-patches <at> gnu.org> writes:

> From: "Skylar \"The Cobra\" Widulski" <cobra <at> vern.cc>
>

> Signed-off-by: Skylar "The Cobra" Widulski <cobra <at> vern.cc>

In guix, the committer adds the 'Signed-off-by' line to commits, so you
can leave that out. We also have some of our own conventions w.r.t.
formatting our commits logs:

https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html

> ---
>  gnu/packages/video.scm | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>
> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index 0abc153c60..f31eee4a43 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
> @@ -64,6 +64,7 @@
>  ;;; Copyright © 2022 Chadwain Holness <chadwainholness <at> gmail.com>
>  ;;; Copyright © 2022 Andy Tai <atai <at> atai.org>
>  ;;; Copyright © 2023 Ott Joon <oj <at> vern.cc>
> +;;; Copyright © 2023 Skylar Widulski <cobra <at> vern.cc>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -202,6 +203,7 @@ (define-module (gnu packages video)
>    #:use-module (gnu packages web)
>    #:use-module (gnu packages webkit)
>    #:use-module (gnu packages wget)
> +  #:use-module (gnu packages wm)

This would introduce an import cycle. WDYT about adding wf-shadow to
(gnu packages wm)'s wm.scm instead?

>    #:use-module (gnu packages wxwidgets)
>    #:use-module (gnu packages xdisorg)
>    #:use-module (gnu packages xiph)
> @@ -5658,3 +5660,32 @@ (define-public svtplay-dl
>  broadcasters including SVT Play, Sveriges Radio, TV4 Play, along with many
>  others.")
>      (license license:expat)))
> +
> +(define-public wf-shadow
> +  (package
> +    (name "wf-shadow")
> +    (version "1.5.5")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                     (url "https://codeberg.org/cobra/wf-shadow")
> +                     (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +                (base32
> +                  "1qyf1w9vw5xswf9vw1267l5zh1dckilbmcm7qj1v762n2saw103p"))))
> +    (build-system copy-build-system)
> +    (arguments
> +     '(#:install-plan
> +       '(("wf-shadow" "bin/")
> +         ("wf-shadow-tui" "bin/")
> +         ("doc/wf-shadow.1" "share/man/man1/")
> +         ("doc/wf-shadow-tui.1" "share/man/man1/"))))
> +    (inputs (list bash wf-recorder wofi dialog wlr-randr))

These inputs currently don't do much; there are multiple ways around
this. One way is already used in the grimshot package expression (guix
edit grimshot) to patch references to other command-line tools, and it
uses the copy-build-system as well. You could have a look at it for
inspiration.

AFAICS you can also leave out the 

> +    (home-page "https://codeberg.org/cobra/wf-shadow")
> +    (synopsis "Make instant-replay easy on wlroots based compositors")
> +    (description
> +      "@code{wf-shadow} is a script written in order to fill the void in
> +instant-replay software for Wayland, specifically wlroots compositors.  It uses
> +wf-recorder and wofi in order to accomplish the task.")

Could you add @code{} to wlroots, wf-recorder and wofi as well?  I think
having a descriptive first sentence would also help users find wf-shadow
more easily. The current opener seems to focus on the reason why it was
created.

Cheers,
 Jelle




Information forwarded to guix-patches <at> gnu.org:
bug#63567; Package guix-patches. (Tue, 20 Jun 2023 21:04:02 GMT) Full text and rfc822 format available.

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

From: Jelle Licht <jlicht <at> fsfe.org>
To: 63567 <at> debbugs.gnu.org
Cc: Skylar The Cobra Widulski <cobra <at> vern.cc>
Subject: Re: [bug#63567] [PATCH] gnu: Add wf-shadow
Date: Tue, 20 Jun 2023 23:03:35 +0200
Jelle Licht <jlicht <at> fsfe.org> writes:

> Hi cobra,
>
> Thanks for the patch! Some comments follow.
[snip]

> AFAICS you can also leave out the  
                                     ^ bash.

> Cheers,
>  Jelle




This bug report was last modified 1 year and 152 days ago.

Previous Next


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