this post was submitted on 18 Nov 2023
1 points (100.0% liked)

Nix

1 readers
1 users here now

founded 1 year ago
MODERATORS
 

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 are viewing a single comment's thread
view the rest of the comments
[–] mister_drgn@alien.top 1 points 1 year ago

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:

https://ryantm.github.io/nixpkgs/using/overrides/