hexedit.scm 3.1 KB

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