How to actually use a packages optional features?

You can override it:

nix-shell -p ‘inxi.override { withRecommends = true; }’ --run ‘inxi -G’

3 Likes