summaryrefslogtreecommitdiff
path: root/gnu/packages/shellutils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/shellutils.scm')
-rw-r--r--gnu/packages/shellutils.scm89
1 files changed, 76 insertions, 13 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 70236d9e5c2..6e64cee1da0 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -12,6 +12,7 @@
12;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re> 12;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
13;;; Copyright © 2021 Alexandr Vityazev <avityazev@posteo.org> 13;;; Copyright © 2021 Alexandr Vityazev <avityazev@posteo.org>
14;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> 14;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
15;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
15;;; 16;;;
16;;; This file is part of GNU Guix. 17;;; This file is part of GNU Guix.
17;;; 18;;;
@@ -42,18 +43,21 @@
42 #:use-module (gnu packages bison) 43 #:use-module (gnu packages bison)
43 #:use-module (gnu packages flex) 44 #:use-module (gnu packages flex)
44 #:use-module (gnu packages golang) 45 #:use-module (gnu packages golang)
46 #:use-module (gnu packages libunistring)
45 #:use-module (gnu packages ncurses) 47 #:use-module (gnu packages ncurses)
48 #:use-module (gnu packages pcre)
46 #:use-module (gnu packages pkg-config) 49 #:use-module (gnu packages pkg-config)
47 #:use-module (gnu packages python) 50 #:use-module (gnu packages python)
48 #:use-module (gnu packages readline) 51 #:use-module (gnu packages readline)
49 #:use-module (gnu packages ruby) 52 #:use-module (gnu packages ruby)
50 #:use-module (gnu packages shells) 53 #:use-module (gnu packages shells)
51 #:use-module (gnu packages tmux)) 54 #:use-module (gnu packages tmux)
55 #:use-module (gnu packages vim))
52 56
53(define-public boxes 57(define-public boxes
54 (package 58 (package
55 (name "boxes") 59 (name "boxes")
56 (version "1.3") 60 (version "2.1.1")
57 (source (origin 61 (source (origin
58 (method git-fetch) 62 (method git-fetch)
59 (uri (git-reference 63 (uri (git-reference
@@ -62,32 +66,43 @@
62 (file-name (git-file-name name version)) 66 (file-name (git-file-name name version))
63 (sha256 67 (sha256
64 (base32 68 (base32
65 "0b12rsynrmkldlwcb62drk33kk0aqwbj10mq5y5x3hjf626gjwsi")))) 69 "1bf5rnfiw04ffs1l17zhbg4wvq2vfn2qbz1xmd250xqj15lysw88"))))
66 (build-system gnu-build-system) 70 (build-system gnu-build-system)
67 (arguments 71 (arguments
68 `(#:test-target "test" 72 `(#:test-target "test"
69 #:make-flags (list (string-append "GLOBALCONF=" 73 #:make-flags (list (string-append "GLOBALCONF="
70 (assoc-ref %outputs "out") 74 (assoc-ref %outputs "out")
71 "/etc/boxes-config")) 75 "/etc/boxes-config"))
76 #:modules
77 ((ice-9 match)
78 ,@%gnu-build-system-modules)
72 #:phases 79 #:phases
73 (modify-phases %standard-phases 80 (modify-phases %standard-phases
74 (delete 'configure) 81 (delete 'configure)
75 (replace 'install 82 (replace 'install
76 (lambda* (#:key outputs #:allow-other-keys) 83 (lambda* (#:key outputs #:allow-other-keys)
77 (let ((dest (assoc-ref outputs "out"))) 84 (let ((out (assoc-ref outputs "out")))
78 (for-each (lambda (x) 85 (for-each (match-lambda
79 (install-file (car x) 86 ((source target)
80 (string-append dest "/" (cdr x)))) 87 (install-file source
81 '(("src/boxes" . "bin") 88 (string-append out "/" target))))
82 ("doc/boxes.1" . "share/man/man1") 89 '(("out/boxes" "bin/")
83 ("boxes-config" . "etc/"))) 90 ("doc/boxes.1" "share/man/man1/")
84 #t)))))) 91 ("boxes-config" "etc/")))))))))
85 (native-inputs `(("flex" ,flex) ("bison" ,bison))) 92 (native-inputs
93 `(("bison" ,bison)
94 ("flex" ,flex)
95
96 ;; For the tests.
97 ("xxd" ,xxd)))
98 (inputs
99 `(("libunistring" ,libunistring)
100 ("pcre2" ,pcre2)))
101 (home-page "https://boxes.thomasjensen.com")
86 (synopsis "Command line ASCII boxes") 102 (synopsis "Command line ASCII boxes")
87 (description 103 (description
88 "This command-line filter program draws ASCII-art boxes around your input 104 "This command-line filter program draws ASCII-art boxes around your input
89text.") 105text.")
90 (home-page "https://boxes.thomasjensen.com/build.html")
91 (license license:gpl2))) 106 (license license:gpl2)))
92 107
93(define-public zsh-autosuggestions 108(define-public zsh-autosuggestions
@@ -449,3 +464,51 @@ the UNIX philosophy, these commands are designed to be composed via pipes. A
449large collection of functions such as basename, replace, contains or is_dir 464large collection of functions such as basename, replace, contains or is_dir
450are provided as arguments to these commands.") 465are provided as arguments to these commands.")
451 (license license:expat))) 466 (license license:expat)))
467
468(define-public rig
469 (package
470 (name "rig")
471 (version "1.11")
472 (source (origin
473 (method url-fetch)
474 (uri (string-append "mirror://sourceforge/rig/rig/"
475 version "/rig-"
476 version ".tar.gz"))
477 (sha256
478 (base32
479 "1f3snysjqqlpk2kgvm5p2icrj4lsdymccmn3igkc2f60smqckgq0"))))
480 (build-system gnu-build-system)
481 (arguments `(#:make-flags
482 (list (string-append "CXX=" ,(cxx-for-target))
483 (string-append "PREFIX=" %output))
484 #:phases
485 (modify-phases %standard-phases
486 (delete 'configure)
487 (add-after 'unpack 'fix-build
488 (lambda _
489 (substitute* "rig.cc"
490 (("^#include <string>")
491 "#include <cstring>"))
492 (substitute* "Makefile"
493 (("g\\+\\+")
494 "${CXX} -O2")
495 (("install -g 0 -m 755 -o 0 -s rig \\$\\(BINDIR\\)")
496 "install -m 755 -d $(DESTDIR)$(BINDIR)\n\t\
497install -m 755 rig $(DESTDIR)$(BINDIR)/rig")
498 (("install -g 0 -m 644 -o 0 rig.6 \\$\\(MANDIR\\)/man6/rig.6")
499 "install -m 755 -d $(DESTDIR)$(MANDIR)/man6/\n\t\
500install -m 644 rig.6 $(DESTDIR)$(MANDIR)/man6/rig.6")
501 (("install -g 0 -m 755 -o 0 -d \\$\\(DATADIR\\)")
502 "install -m 755 -d $(DESTDIR)$(DATADIR)")
503 (("install -g 0 -m 644 -o 0 data/\\*.idx \\$\\(DATADIR\\)")
504 "install -m 644 data/*.idx $(DESTDIR)$(DATADIR)")))))
505 #:tests? #f))
506 (home-page "http://rig.sourceforge.net")
507 (synopsis "Random identity generator")
508 (description
509 "RIG (Random Identity Generator) generates random, yet real-looking,
510personal data. It is useful if you need to feed a name to a Web site, BBS, or
511real person, and are too lazy to think of one yourself. Also, if the Web
512site/BBS/person you are giving the information to tries to cross-check the
513city, state, zip, or area code, it will check out.")
514 (license license:gpl2+)))