gnu: pantalaimon: Update to 0.10.5.
[jackhill/guix/guix.git] / gnu / packages / hexedit.scm
CommitLineData
a205d3f9 1;;; GNU Guix --- Functional package management for GNU
3c8ba11a 2;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
24b91ebd 3;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
6ba08e70 4;;; Copyright © 2018, 2020, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
7ee8acbb 5;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
a205d3f9
KK
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages hexedit)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (gnu packages)
0136fbd1 26 #:use-module (gnu packages autotools)
24b91ebd 27 #:use-module (gnu packages compression)
602059e7 28 #:use-module (gnu packages man)
a205d3f9
KK
29 #:use-module (gnu packages ncurses)
30 #:use-module (guix download)
0136fbd1 31 #:use-module (guix git-download)
a205d3f9
KK
32 #:use-module (guix build-system gnu))
33
34(define-public hexedit
35 (package
36 (name "hexedit")
6ba08e70 37 (version "1.6")
a205d3f9 38 (source (origin
0136fbd1
TGR
39 (method git-fetch)
40 (uri (git-reference
b0e7b699 41 (url "https://github.com/pixel/hexedit")
0136fbd1
TGR
42 (commit version)))
43 (file-name (git-file-name name version))
a205d3f9
KK
44 (sha256
45 (base32
6ba08e70 46 "00l8vazbjzdg09azp6w3nzq4rl7qyh06i65dh621r6zaprp0z23w"))))
a205d3f9 47 (build-system gnu-build-system)
602059e7
JK
48 (arguments
49 `(#:tests? #f ; no check target
50 #:phases
51 (modify-phases %standard-phases
52 ;; Make F1 open the man page even if man-db is not in the profile.
53 (add-after 'unpack 'patch-man-path
54 (lambda* (#:key inputs outputs #:allow-other-keys)
55 (substitute* "interact.c"
56 (("\"man\"")
57 (string-append "\"" (assoc-ref inputs "man-db") "/bin/man\""))
58 (("\"hexedit\"")
59 (string-append "\"" (assoc-ref outputs "out")
6ba08e70 60 "/share/man/man1/hexedit.1.gz\""))))))))
0136fbd1 61 (native-inputs
8394619b 62 (list autoconf automake))
0136fbd1 63 (inputs
8394619b 64 (list man-db ncurses))
a205d3f9
KK
65 (synopsis "View and edit files or devices in hexadecimal or ASCII")
66 (description "hexedit shows a file both in ASCII and in hexadecimal. The
67file can be a device as the file is read a piece at a time. You can modify
68the file and search through it.")
69 (home-page "http://rigaux.org/hexedit.html")
70 (license license:gpl2+)))
24b91ebd
GB
71
72(define-public ht
73 (package
74 (name "ht")
75 (version "2.1.0")
76 (source (origin
77 (method url-fetch)
78 (uri (string-append
79 "https://sourceforge.net/projects/hte/files/ht-source/"
80 name "-" version ".tar.bz2"))
81 (sha256
82 (base32
83 "0w2xnw3z9ws9qrdpb80q55h6ynhh3aziixcfn45x91bzrbifix9i"))))
84 (build-system gnu-build-system)
85 (inputs
8394619b 86 (list lzo ncurses))
24b91ebd
GB
87 (synopsis "Viewer, editor, and analyzer for executable binaries")
88 (description
89 "ht is a terminal-based program to view, edit, and analyze any file, but
90with a special focus on executable binaries. Its goal is to combine the
91low-level functionality of a debugger with the usability of an @dfn{Integrated
92Development Environment} (IDE).")
93 (home-page "http://hte.sourceforge.net/")
94 (license license:gpl2)))
7ee8acbb
JK
95
96(define-public bvi
97 (package
98 (name "bvi")
99 (version "1.4.1")
100 (source (origin
101 (method url-fetch)
102 (uri (string-append
103 "mirror://sourceforge/bvi/bvi/" version
104 "/bvi-" version ".src.tar.gz"))
105 (sha256
106 (base32
107 "0a0yl0dcyff31k3dr4dpgqmlwygp8iaslnr5gmb6814ylxf2ad9h"))))
108 (build-system gnu-build-system)
109 (arguments '(#:tests? #f)) ; no check target
110 (inputs
8394619b 111 (list ncurses))
7ee8acbb
JK
112 (synopsis "Binary file editor")
113 (description "@command{bvi} is a display-oriented editor for binary files,
114based on the @command{vi} text editor.")
115 (home-page "http://bvi.sourceforge.net/")
116 (license license:gpl3+)))