mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add xxd.
* gnu/packages/vim.scm (xxd): New variable.
This commit is contained in:
parent
b43b9acf15
commit
b0a1d7ef7d
1 changed files with 21 additions and 0 deletions
|
@ -102,6 +102,27 @@ (define-public vim
|
||||||
configuration files.")
|
configuration files.")
|
||||||
(license license:vim)))
|
(license license:vim)))
|
||||||
|
|
||||||
|
(define-public xxd
|
||||||
|
(package (inherit vim)
|
||||||
|
(name "xxd")
|
||||||
|
(arguments
|
||||||
|
`(#:make-flags '("CC=gcc")
|
||||||
|
#:tests? #f ; there are none
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _
|
||||||
|
(chdir "src/xxd")))
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
||||||
|
(install-file "xxd" bin)
|
||||||
|
#t))))))
|
||||||
|
(synopsis "Hexdump utility from vim")
|
||||||
|
(description "This package provides the Hexdump utility xxd that comes
|
||||||
|
with the editor vim.")))
|
||||||
|
|
||||||
(define-public vim-full
|
(define-public vim-full
|
||||||
(package
|
(package
|
||||||
;; This package should share its source with Vim, but it doesn't
|
;; This package should share its source with Vim, but it doesn't
|
||||||
|
|
Loading…
Reference in a new issue