[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: Add xxd.
From: |
Ricardo Wurmus |
Subject: |
01/02: gnu: Add xxd. |
Date: |
Fri, 22 Sep 2017 06:21:32 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit b0a1d7ef7df0b5e080a2e2b0529fe4e0cf25bdd7
Author: Ricardo Wurmus <address@hidden>
Date: Fri Sep 22 11:55:00 2017 +0200
gnu: Add xxd.
* gnu/packages/vim.scm (xxd): New variable.
---
gnu/packages/vim.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index f4416a5..dffd6d9 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -102,6 +102,27 @@ Vim is perfect for all kinds of text editing, from
composing email to editing
configuration files.")
(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
(package
;; This package should share its source with Vim, but it doesn't