mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ranger: Improve package style.
* gnu/packages/disk.scm (ranger): Move native-inputs under arguments, inputs under native-inputs. [arguments]: Use G-Expressions. Change-Id: Icc09cef69a552643bba426debee5002de787a86f
This commit is contained in:
parent
4258e963f4
commit
64127f9fd1
1 changed files with 27 additions and 27 deletions
|
@ -980,37 +980,37 @@ Duperemove can also take input from the @command{fdupes} program.")
|
||||||
(package
|
(package
|
||||||
(name "ranger")
|
(name "ranger")
|
||||||
(version "1.9.4")
|
(version "1.9.4")
|
||||||
(source (origin
|
(source
|
||||||
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://ranger.github.io/"
|
(uri (string-append "https://ranger.github.io/" "ranger-" version
|
||||||
"ranger-" version ".tar.gz"))
|
".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "128ggxfhfmckl7x89flwxks7gxq0m02insdizcsp62193c6mxmvs"))))
|
||||||
"128ggxfhfmckl7x89flwxks7gxq0m02insdizcsp62193c6mxmvs"))))
|
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(inputs
|
|
||||||
(list bash-minimal w3m))
|
|
||||||
(native-inputs
|
|
||||||
(list python-pytest python-setuptools python-wheel))
|
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'install 'wrap-program
|
(add-after 'install 'wrap-program
|
||||||
;; Tell 'ranger' where 'w3mimgdisplay' is.
|
;; Tell 'ranger' where 'w3mimgdisplay' is.
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((ranger (string-append #$output "/bin/ranger"))
|
||||||
(ranger (string-append out "/bin/ranger"))
|
(w3m #$(this-package-input "w3m"))
|
||||||
(w3m (assoc-ref inputs "w3m"))
|
|
||||||
(w3mimgdisplay (string-append w3m
|
(w3mimgdisplay (string-append w3m
|
||||||
"/libexec/w3m/w3mimgdisplay")))
|
"/libexec/w3m/w3mimgdisplay")))
|
||||||
(wrap-program ranger
|
(wrap-program ranger
|
||||||
`("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)))))))))
|
`("W3MIMGDISPLAY_PATH" ":" prefix
|
||||||
|
(,w3mimgdisplay)))))))))
|
||||||
|
(native-inputs (list python-pytest python-setuptools python-wheel))
|
||||||
|
(inputs (list bash-minimal w3m))
|
||||||
(home-page "https://ranger.github.io/")
|
(home-page "https://ranger.github.io/")
|
||||||
(synopsis "Console file manager")
|
(synopsis "Console file manager")
|
||||||
(description "ranger is a console file manager with Vi key bindings. It
|
(description
|
||||||
provides a minimalistic and nice curses interface with a view on the directory
|
"ranger is a console file manager with Vi key bindings. It provides a
|
||||||
hierarchy. It ships with @code{rifle}, a file launcher that is good at
|
minimalistic and nice curses interface with a view on the directory hierarchy.
|
||||||
automatically finding out which program to use for what file type.")
|
It ships with @code{rifle}, a file launcher that is good at automatically
|
||||||
|
finding out which program to use for what file type.")
|
||||||
(license license:gpl3)))
|
(license license:gpl3)))
|
||||||
|
|
||||||
(define-public fff
|
(define-public fff
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue