[Nix-dev] handling /usr/lib/foo-plugins
Marc Weber
marco-oweber at gmx.de
Fri May 11 13:56:15 CEST 2012
The most simple way would be patching it to find its library in PATHs
relative to PATH. Then it would not matter where the .so libraries are
installed (system wide or user only).
However if the plugin versions don't match the viewer version you'll be
in trouble. That's why the alternative "wrapper" and env var could work
as well:
Eg I use this for gimp:
(pkgs.gimpGit.withPlugins [ "ufraw" "lqrPlugin" "fourier" "resynthesizer" "waveletSharpen" /*"gmic"*/ ])
Then an env var or such within the wrapper could be used - or the
wrapper could be an experssion like profiles just symlinking the viewer
and plugins into an $out path.
The withPlugins name just assembles the wrapper.
Marc Weber
More information about the nix-dev
mailing list