summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosha <sughosha@proton.me>2022-09-22 06:23:13 +0000
committerGuix Patches Tester <>2022-09-22 07:28:34 +0100
commit36c3bc79f275e677cb33b0db7cb9b1a66cec43f6 (patch)
tree41b9271a9f61feb0840785628b3191be5772f14b
parent97e719593045f5541d062aece1a25379be56d24d (diff)
downloadguix-patches-36c3bc79f275e677cb33b0db7cb9b1a66cec43f6.tar
guix-patches-36c3bc79f275e677cb33b0db7cb9b1a66cec43f6.tar.gz
gnu: Add textpieces
* gnu/packages/text-editors.scm (textpieces): New variable.
-rw-r--r--gnu/packages/text-editors.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 0c30a705b9..8852bbf067 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -45,6 +45,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system glib-or-gtk)
+ #:use-module (guix build-system meson)
#:use-module (guix build-system python)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
@@ -62,6 +63,7 @@
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
+ #:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
#:use-module (gnu packages guile)
#:use-module (gnu packages haskell-xyz)
@@ -1260,3 +1262,56 @@ scriptable rc file, macros, search and replace (PCRE), window
splitting, multiple cursors, and integration with various shell
commands.")
(license license:asl2.0)))
+
+(define-public textpieces
+ (package
+ (name "textpieces")
+ (version "3.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/liferooter/textpieces")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "14zq2c7js80m4cq8wpdb3kyz5sw96l8znbz027w8s94gqhm632ff"))))
+ (arguments
+ `(#:tests? #f ;fails to validate appstream file
+ #:glib-or-gtk? #t))
+ (build-system meson-build-system)
+ (native-inputs (list pkg-config
+ vala
+ desktop-file-utils
+ appstream-glib
+ gettext-minimal
+ `(,glib "bin")
+ blueprint-compiler
+ `(,gtk "bin")))
+ (inputs (list gtk
+ libadwaita
+ gtksourceview
+ json-glib
+ libgee
+ python
+ python-pygobject
+ python-pyyaml))
+ (home-page "https://github.com/liferooter/textpieces")
+ (synopsis "Quick text processor")
+ (description
+ "Text Pieces tool for quick text transformations such as checksums,
+encoding, decoding and so on.
+
+The basic features of Text Pieces are:
+@itemize
+@item Base64 encoding and decoding
+@item SHA-1, SHA-2 and MD5 checksums
+@item Prettify and minify JSON
+@item Covert JSON to YAML and vice versa
+@item Count lines, symbols and words
+@item Escape and unescape string, URL and HTML
+@item Remove leading and trailing whitespaces
+@item Sort and reverse sort lines
+@item Reverse lines and whole text
+@item You can write your own scripts and create custom tools
+@end itemize")
+ (license license:gpl3)))