Archived
1
0
Fork 0

gnu: xxd: Rewrite with gexps.

* gnu/packages/vim.scm (xxd)[arguments]: Rewrite with gexps.
This commit is contained in:
Efraim Flashner 2022-01-09 11:08:24 +02:00
parent b168c9f441
commit 796bb42c11
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -31,6 +31,7 @@
(define-module (gnu packages vim) (define-module (gnu packages vim)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
@ -176,20 +177,19 @@ configuration files.")
(package (inherit vim) (package (inherit vim)
(name "xxd") (name "xxd")
(arguments (arguments
`(#:make-flags (list ,(string-append "CC=" (cc-for-target))) (list
#:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
#:tests? #f ; there are none #:tests? #f ; there are none
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(add-after 'unpack 'chdir (add-after 'unpack 'chdir
(lambda _ (lambda _
(chdir "src/xxd") (chdir "src/xxd")))
#t)) (replace 'install
(replace 'install (lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key outputs #:allow-other-keys) (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(let ((bin (string-append (assoc-ref outputs "out") "/bin"))) (install-file "xxd" bin)))))))
(install-file "xxd" bin)
#t))))))
(inputs `()) (inputs `())
(native-inputs `()) (native-inputs `())
(synopsis "Hexdump utility from vim") (synopsis "Hexdump utility from vim")