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 _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
