summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRutger Helling <rhelling@mykolab.com>2019-01-07 08:29:20 +0100
committerRutger Helling <rhelling@mykolab.com>2019-01-07 08:31:14 +0100
commitbd86a1bede0fd460766b89766f93119acc801d17 (patch)
treec33c2535f9c7b603169f59c46326b8b092c9e081 /gnu
parentc824dedf711dc4aa33e005fa291a3aec58a9e2e2 (diff)
downloadguix-bd86a1bede0fd460766b89766f93119acc801d17.tar.gz
gnu: Add slurp.
* gnu/packages/image.scm (slurp): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/image.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index e4bcd6a274..8771eb8ae2 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1599,3 +1599,29 @@ identical visual appearance.")
    (description "grim can create screenshots from a Wayland compositor.")
    ;; MIT license.
    (license license:expat)))
+
+(define-public slurp
+  (package
+   (name "slurp")
+   (version "1.0")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url "https://github.com/emersion/slurp.git")
+           (commit (string-append "v" version))))
+     (file-name (git-file-name name version))
+     (sha256
+      (base32 "03igv8r8n772xb0y7whhs1pa298l3d94jbnknaxpwp2n4fi04syb"))))
+   (build-system meson-build-system)
+   (native-inputs `(("pkg-config" ,pkg-config)))
+   (inputs `(("cairo" ,cairo)
+             ("scdoc" ,scdoc)
+             ("wayland" ,wayland)
+             ("wayland-protocols" ,wayland-protocols)))
+   (home-page "https://github.com/emersion/slurp")
+   (synopsis "Select a region in a Wayland compositor")
+   (description "Slurp can select a region in a Wayland compositor and print it
+to the standard output.  It works well together with grim.")
+   ;; MIT license.
+   (license license:expat)))