You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
4.6 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Kei Kebreau <>
;;; Copyright © 2017 Gábor Boskovits <>
;;; Copyright © 2018 Tobias Geerinckx-Rice <>
;;; Copyright © 2020 Jakub Kądziołka <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages hexedit)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages compression)
#:use-module (gnu packages man)
#:use-module (gnu packages ncurses)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public hexedit
(name "hexedit")
(version "1.4.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "")
(commit version)))
(file-name (git-file-name name version))
(build-system gnu-build-system)
`(#:tests? #f ; no check target
(modify-phases %standard-phases
;; Make F1 open the man page even if man-db is not in the profile.
(add-after 'unpack 'patch-man-path
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "interact.c"
(string-append "\"" (assoc-ref inputs "man-db") "/bin/man\""))
(string-append "\"" (assoc-ref outputs "out")
`(("autoconf" ,autoconf)
("automake" ,automake)))
`(("man-db" ,man-db)
("ncurses" ,ncurses)))
(synopsis "View and edit files or devices in hexadecimal or ASCII")
(description "hexedit shows a file both in ASCII and in hexadecimal. The
file can be a device as the file is read a piece at a time. You can modify
the file and search through it.")
(home-page "")
(license license:gpl2+)))
(define-public ht
(name "ht")
(version "2.1.0")
(source (origin
(method url-fetch)
(uri (string-append
name "-" version ".tar.bz2"))
(build-system gnu-build-system)
`(("lzo" ,lzo)
("ncurses" ,ncurses)))
(synopsis "Viewer, editor, and analyzer for executable binaries")
"ht is a terminal-based program to view, edit, and analyze any file, but
with a special focus on executable binaries. Its goal is to combine the
low-level functionality of a debugger with the usability of an @dfn{Integrated
Development Environment} (IDE).")
(home-page "")
(license license:gpl2)))
(define-public bvi
(name "bvi")
(version "1.4.1")
(source (origin
(method url-fetch)
(uri (string-append
"mirror://sourceforge/bvi/bvi/" version
"/bvi-" version ".src.tar.gz"))
(build-system gnu-build-system)
(arguments '(#:tests? #f)) ; no check target
`(("ncurses" ,ncurses)))
(synopsis "Binary file editor")
(description "@command{bvi} is a display-oriented editor for binary files,
based on the @command{vi} text editor.")
(home-page "")
(license license:gpl3+)))