mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add dhex.
* gnu/packages/hexedit.scm (dhex): New variable. Change-Id: I46a05c285cfd96fb4fff17e47a3244797dfa5f49 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
ffd1994823
commit
673997a268
1 changed files with 43 additions and 0 deletions
|
@ -30,6 +30,8 @@
|
||||||
#:use-module (gnu packages ncurses)
|
#:use-module (gnu packages ncurses)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (guix build-system gnu))
|
#:use-module (guix build-system gnu))
|
||||||
|
|
||||||
(define-public hexedit
|
(define-public hexedit
|
||||||
|
@ -70,6 +72,47 @@ the file and search through it.")
|
||||||
(home-page "http://rigaux.org/hexedit.html")
|
(home-page "http://rigaux.org/hexedit.html")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
|
(define-public dhex
|
||||||
|
(package
|
||||||
|
(name "dhex")
|
||||||
|
(version "0.69")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://www.dettus.net/dhex/dhex_"
|
||||||
|
version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"06y4lrp29f2fh303ijk1xhspa1d4x4dm6hnyw3dd8szi3k6hnwsj"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f ;no tests provided
|
||||||
|
#:make-flags
|
||||||
|
#~(list (string-append "CC=" #$(cc-for-target)))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'configure) ;no configure script
|
||||||
|
(replace 'install ;multiple issues with provided 'make install'
|
||||||
|
(lambda _
|
||||||
|
(let ((bin (string-append #$output "/bin"))
|
||||||
|
(man1 (string-append #$output
|
||||||
|
"/share/man/man1"))
|
||||||
|
(man5 (string-append #$output
|
||||||
|
"/share/man/man5")))
|
||||||
|
(install-file "dhex" bin)
|
||||||
|
(install-file "dhex.1" man1)
|
||||||
|
(install-file "dhexrc.5" man5)
|
||||||
|
(install-file "dhex_markers.5" man5)
|
||||||
|
(install-file "dhex_searchlog.5" man5)))))))
|
||||||
|
(inputs (list ncurses))
|
||||||
|
(home-page "https://www.dettus.net/dhex/")
|
||||||
|
(synopsis "View, edit, and diff files in hexadecimal")
|
||||||
|
(description
|
||||||
|
"Dhex is hex editor which includes a diff mode, which can be used to
|
||||||
|
easily and conveniently compare two binary files. It is based on Ncurses
|
||||||
|
and is themeable.")
|
||||||
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public ht
|
(define-public ht
|
||||||
(package
|
(package
|
||||||
(name "ht")
|
(name "ht")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue