1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
3 ;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
4 ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
5 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
7 ;;; This file is part of GNU Guix.
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.
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.
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/>.
22 (define-module (gnu packages hexedit)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages autotools)
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages man)
29 #:use-module (gnu packages ncurses)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix build-system gnu))
34 (define-public hexedit
41 (url "https://github.com/pixel/hexedit")
43 (file-name (git-file-name name version))
46 "1sfa4i374n1xrz2ivvzcd8jzc296ly11x1713s4bplvszcqpw6dv"))))
47 (build-system gnu-build-system)
49 `(#:tests? #f ; no check target
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"
57 (string-append "\"" (assoc-ref inputs "man-db") "/bin/man\""))
59 (string-append "\"" (assoc-ref outputs "out")
60 "/share/man/man1/hexedit.1.gz\"")))
63 `(("autoconf" ,autoconf)
64 ("automake" ,automake)))
67 ("ncurses" ,ncurses)))
68 (synopsis "View and edit files or devices in hexadecimal or ASCII")
69 (description "hexedit shows a file both in ASCII and in hexadecimal. The
70 file can be a device as the file is read a piece at a time. You can modify
71 the file and search through it.")
72 (home-page "http://rigaux.org/hexedit.html")
73 (license license:gpl2+)))
82 "https://sourceforge.net/projects/hte/files/ht-source/"
83 name "-" version ".tar.bz2"))
86 "0w2xnw3z9ws9qrdpb80q55h6ynhh3aziixcfn45x91bzrbifix9i"))))
87 (build-system gnu-build-system)
90 ("ncurses" ,ncurses)))
91 (synopsis "Viewer, editor, and analyzer for executable binaries")
93 "ht is a terminal-based program to view, edit, and analyze any file, but
94 with a special focus on executable binaries. Its goal is to combine the
95 low-level functionality of a debugger with the usability of an @dfn{Integrated
96 Development Environment} (IDE).")
97 (home-page "http://hte.sourceforge.net/")
98 (license license:gpl2)))
107 "mirror://sourceforge/bvi/bvi/" version
108 "/bvi-" version ".src.tar.gz"))
111 "0a0yl0dcyff31k3dr4dpgqmlwygp8iaslnr5gmb6814ylxf2ad9h"))))
112 (build-system gnu-build-system)
113 (arguments '(#:tests? #f)) ; no check target
115 `(("ncurses" ,ncurses)))
116 (synopsis "Binary file editor")
117 (description "@command{bvi} is a display-oriented editor for binary files,
118 based on the @command{vi} text editor.")
119 (home-page "http://bvi.sourceforge.net/")
120 (license license:gpl3+)))