ranger: move non-Python deps into the wrapper args

- dropped less, cuz it's already patched in preConfigure
- added coreutils and bash for `scope.sh` to work (can't patch or wrap
  the script itself, because Ranger both uses it internally and installs
  it in .config/ranger)
This commit is contained in:
Acid Bong
2025-11-29 11:46:05 +02:00
parent b402b8183c
commit cb17493a01
+22 -9
View File
@@ -3,6 +3,8 @@
fetchFromGitHub,
python3Packages,
file,
coreutils,
bashNonInteractive,
less,
highlight,
w3m,
@@ -32,15 +34,26 @@ python3Packages.buildPythonApplication {
astroid
pylint
];
propagatedBuildInputs = [
less
file
]
++ lib.optionals imagePreviewSupport [ python3Packages.pillow ]
++ lib.optionals sixelPreviewSupport [ imagemagick ]
++ lib.optionals neoVimSupport [ python3Packages.pynvim ]
++ lib.optionals improvedEncodingDetection [ python3Packages.chardet ]
++ lib.optionals rightToLeftTextSupport [ python3Packages.python-bidi ];
propagatedBuildInputs =
[ ]
++ lib.optionals imagePreviewSupport [ python3Packages.pillow ]
++ lib.optionals neoVimSupport [ python3Packages.pynvim ]
++ lib.optionals improvedEncodingDetection [ python3Packages.chardet ]
++ lib.optionals rightToLeftTextSupport [ python3Packages.python-bidi ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath (
[
file
coreutils
bashNonInteractive
]
++ lib.optionals sixelPreviewSupport [ imagemagick ]
))
];
preConfigure = ''
${lib.optionalString (highlight != null) ''