From 3aca219535514ee1ed34eb1bfe48dc0e55a81ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Tue, 5 Feb 2019 14:58:09 +0100 Subject: [PATCH] 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 --- pkgs/applications/misc/ranger/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/ranger/default.nix b/pkgs/applications/misc/ranger/default.nix index 7527fe963ab..7045228d6a2 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