diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2026-01-28 13:57:43 +0900 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-01-31 13:31:58 +0100 |
| commit | 46870ecc0e01e253012d0bac90ef270cd163e745 (patch) | |
| tree | 245816e150e314a4d753d4ace839e4cbce324ab1 /gnu/packages | |
| parent | 61e9329c5607b8098d2b6284a47abdaa88610c26 (diff) | |
gnu: ranger: Set path to file.
While file is an optional dependency, it is required to determine file
types and open files.
* gnu/packages/disk.scm (ranger)[inputs]: Add file.
[#:phases]: Add ‘set-paths’.
Change-Id: I35a462d949cf1aca5896574a1ff19525d3c435f0
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/disk.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 762280cb877..00443a0ab90 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm | |||
| @@ -1123,6 +1123,13 @@ Duperemove can also take input from the @command{fdupes} program.") | |||
| 1123 | (list | 1123 | (list |
| 1124 | #:phases | 1124 | #:phases |
| 1125 | #~(modify-phases %standard-phases | 1125 | #~(modify-phases %standard-phases |
| 1126 | (add-after 'unpack 'set-paths | ||
| 1127 | (lambda _ | ||
| 1128 | (substitute* (find-files "ranger" "\\.py$") | ||
| 1129 | (("\"file\"") | ||
| 1130 | (simple-format #f "~s" | ||
| 1131 | #$(file-append (this-package-input "file") | ||
| 1132 | "/bin/file")))))) | ||
| 1126 | (add-after 'install 'wrap-program | 1133 | (add-after 'install 'wrap-program |
| 1127 | ;; Tell 'ranger' where 'w3mimgdisplay' is. | 1134 | ;; Tell 'ranger' where 'w3mimgdisplay' is. |
| 1128 | (lambda _ | 1135 | (lambda _ |
| @@ -1134,7 +1141,7 @@ Duperemove can also take input from the @command{fdupes} program.") | |||
| 1134 | `("W3MIMGDISPLAY_PATH" ":" prefix | 1141 | `("W3MIMGDISPLAY_PATH" ":" prefix |
| 1135 | (,w3mimgdisplay))))))))) | 1142 | (,w3mimgdisplay))))))))) |
| 1136 | (native-inputs (list python-pytest python-setuptools python-wheel)) | 1143 | (native-inputs (list python-pytest python-setuptools python-wheel)) |
| 1137 | (inputs (list bash-minimal w3m)) | 1144 | (inputs (list bash-minimal file w3m)) |
| 1138 | (home-page "https://ranger.github.io/") | 1145 | (home-page "https://ranger.github.io/") |
| 1139 | (synopsis "Console file manager") | 1146 | (synopsis "Console file manager") |
| 1140 | (description | 1147 | (description |
