I’d like to add ‘ImageMagick’ as a dependency for ranger to enable sixel support for image preview. How do I go about doing this?
You’ll have to modify this file in order to do what you want, then import it into your config, unless somebody already did this for you as a flake or something. I’d give a more thorough explanation but I’m at work atm. Hopefully you can understand from the file what you need to do or someone else can explain.
I figured the need for imagemagick as a dependency while looking through this link before, but I was hoping there was an “easier” way to do this. Maybe I’ll take this opportunity and make a PR when I have time, appreciate you. Thank you!!
If you just need to make sure ImageMagick is available when ranger is built and/or run, you should be able to use overrideAttrs on the ranger package to add a buildInputs attribute, which will be a list containing the nix package for ImageMagick. To begin with, check this out: