about summary refs log tree commit diff
path: root/pkgs/applications/misc/ranger
diff options
context:
space:
mode:
authorJosé Luis Lafuente <jl@lafuente.me>2019-02-05 14:58:09 +0100
committerJosé Luis Lafuente <jl@lafuente.me>2019-02-05 14:59:58 +0100
commit3aca219535514ee1ed34eb1bfe48dc0e55a81ddd (patch)
treee6fc21b246e430467b336ad24d4c25731bfd59f1 /pkgs/applications/misc/ranger
parenta0a203eb5c1bc8a380d0270e3fe8dff502aecd64 (diff)
downloadnixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar.gz
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar.bz2
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar.lz
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar.xz
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.tar.zst
nixlib-3aca219535514ee1ed34eb1bfe48dc0e55a81ddd.zip
ranger: add pillow dependency
Pillow is required to display images with kitty terminal
To test it, add these 2 lines to your rc.conf:
set preview_images true
set preview_images_method kitty
Diffstat (limited to 'pkgs/applications/misc/ranger')
-rw-r--r--pkgs/applications/misc/ranger/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/misc/ranger/default.nix b/pkgs/applications/misc/ranger/default.nix
index 7527fe963abb..7045228d6a2f 100644
--- a/pkgs/applications/misc/ranger/default.nix
+++ b/pkgs/applications/misc/ranger/default.nix
@@ -19,7 +19,8 @@ python3Packages.buildPythonApplication rec {
   LC_ALL = "en_US.UTF-8";
 
   checkInputs = with python3Packages; [ pytest ];
-  propagatedBuildInputs = [ file ];
+  propagatedBuildInputs = [ file ]
+    ++ lib.optional (imagePreviewSupport) [ python3Packages.pillow ];
 
   checkPhase = ''
     py.test tests