From bc7879cca6196905b3f1e2c9db6c674ef0b7f8ca Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 12 Feb 2021 12:16:31 +0000 Subject: [PATCH] gnu: Add swappy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/image.scm (swappy): New variable. Signed-off-by: 宋文武 --- gnu/packages/image.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 339bd7dcf2..28169b0295 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Maxim Cournoyer ;;; Copyright © 2020 Zhu Zihao ;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -1820,6 +1821,36 @@ (define-public flameshot @end itemize\n") (license license:gpl3+))) +(define-public swappy + (package + (name "swappy") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jtheoof/swappy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14ac2jmnak7avcz0jhqjm30vk7pv3gq5aq5rdyh84k8c613kkicf")))) + (build-system meson-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("scdoc" ,scdoc) + ("glib" ,glib "bin"))) ; for 'glib-compile-resources' + (inputs + `(("gtk+" ,gtk+) + ("libnotify" ,libnotify))) + (home-page "https://github.com/jtheoof/swappy") + (synopsis "Grab and edit on the fly snapshots of a Wayland compositor") + (description + "@command{swappy} is a command-line utility to take and edit screenshots +of Wayland desktops. Works great with grim, slurp and sway. But can easily +work with other screen copy tools that can output a final PNG image to +stdout.") + (license license:expat))) + (define-public gifsicle (package (name "gifsicle")