hexedit.scm 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages hexedit)
  20. #:use-module ((guix licenses) #:prefix license:)
  21. #:use-module (guix packages)
  22. #:use-module (gnu packages)
  23. #:use-module (gnu packages compression)
  24. #:use-module (gnu packages ncurses)
  25. #:use-module (guix download)
  26. #:use-module (guix build-system gnu))
  27. (define-public hexedit
  28. (package
  29. (name "hexedit")
  30. (version "1.2.13")
  31. (source (origin
  32. (method url-fetch)
  33. (uri (string-append "http://rigaux.org/"
  34. name "-" version ".src.tgz"))
  35. (sha256
  36. (base32
  37. "1mwdp1ikk64cqmagnrrps5jkn3li3n47maiqh2qc1xbp1ains4ka"))))
  38. (build-system gnu-build-system)
  39. (arguments '(#:tests? #f)) ; no check target
  40. (inputs `(("ncurses" ,ncurses)))
  41. (synopsis "View and edit files or devices in hexadecimal or ASCII")
  42. (description "hexedit shows a file both in ASCII and in hexadecimal. The
  43. file can be a device as the file is read a piece at a time. You can modify
  44. the file and search through it.")
  45. (home-page "http://rigaux.org/hexedit.html")
  46. (license license:gpl2+)))
  47. (define-public ht
  48. (package
  49. (name "ht")
  50. (version "2.1.0")
  51. (source (origin
  52. (method url-fetch)
  53. (uri (string-append
  54. "https://sourceforge.net/projects/hte/files/ht-source/"
  55. name "-" version ".tar.bz2"))
  56. (sha256
  57. (base32
  58. "0w2xnw3z9ws9qrdpb80q55h6ynhh3aziixcfn45x91bzrbifix9i"))))
  59. (build-system gnu-build-system)
  60. (inputs
  61. `(("lzo" ,lzo)
  62. ("ncurses" ,ncurses)))
  63. (synopsis "Viewer, editor, and analyzer for executable binaries")
  64. (description
  65. "ht is a terminal-based program to view, edit, and analyze any file, but
  66. with a special focus on executable binaries. Its goal is to combine the
  67. low-level functionality of a debugger with the usability of an @dfn{Integrated
  68. Development Environment} (IDE).")
  69. (home-page "http://hte.sourceforge.net/")
  70. (license license:gpl2)))