GNU bug report logs -
#56770
[PATCH] gnu: Add grimshot.
Previous Next
Reported by: Antero Mejr <antero <at> mailbox.org>
Date: Mon, 25 Jul 2022 20:55:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 27 Jul 2022 20:42:45 +0200
with message-id <98529a5631ca6c856e3909b8c7cfc66236fafe0b.camel <at> gmail.com>
and subject line Re: [bug#56770] LGTM: [PATCH v3] gnu: Add grimshot. (LGTM)
has caused the debbugs.gnu.org bug report #56770,
regarding [PATCH] gnu: Add grimshot.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
56770: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56770
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
* gnu/packages/wm.scm (grimshot): New variable.
---
gnu/packages/wm.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 8fef7de77b..9aad6c1c37 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -2742,3 +2742,38 @@ (define-public avizo
"Avizo is a simple notification daemon for Sway, mainly intended to be
used for multimedia keys.")
(license license:gpl3+)))
+
+(define-public grimshot
+ (package
+ (inherit sway)
+ (name "grimshot")
+ (build-system trivial-build-system)
+ (arguments
+ (list
+ #:modules '((guix build utils))
+ #:builder
+ #~(begin
+ (use-modules (guix build utils))
+ (copy-recursively
+ (string-append #$(package-source this-package) "/contrib") ".")
+ (substitute* "grimshot"
+ (("date ") (string-append #$coreutils "/bin/date "))
+ (("jq ") (string-append #$jq "/bin/jq "))
+ (("swaymsg ") (string-append #$sway "/bin/swaymsg "))
+ (("notify-send ") (string-append #$libnotify "/bin/notify-send "))
+ (("grim ") (string-append #$grim "/bin/grim "))
+ (("slurp ") (string-append #$slurp "/bin/slurp "))
+ (("wl-copy ") (string-append #$wl-clipboard "/bin/wl-copy ")))
+ (delete-file "grimshot.1")
+ (system
+ (string-append #$scdoc "/bin/scdoc < grimshot.1.scd > grimshot.1"))
+ (install-file "grimshot" (string-append #$output "/bin"))
+ (install-file "grimshot.1"
+ (string-append #$output "/usr/share/man/man1")))))
+ (native-inputs (list scdoc))
+ (inputs (list coreutils grim jq libnotify sway wl-clipboard))
+ (synopsis "Screenshot utility for the Sway window manager")
+ (description "Grimshot is a screenshot utility for @code{sway}. It provides
+an interface over @code{grim}, @code{slurp} and @code{jq}, and supports storing
+the screenshot either directly to the clipboard using @code{wl-copy} or to a
+file.")))
--
2.37.0
[Message part 3 (message/rfc822, inline)]
Am Mittwoch, dem 27.07.2022 um 00:06 +0200 schrieb Maxime Devos:
> LGTM, with the caveat that I only looked at the package definition
> during reviewing.
Well, I also built the package, so together this must mean it's fine,
right? Either way, I trust you, so I pushed it.
> (Also, trying out a new convention for indicating that a patch
> appears ready: prefix the subject with LGTM)
IMHO one LGTM per header suffices. I think the prefix is better than
the suffix because the latter will likely be truncated.
Cheers
This bug report was last modified 3 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.