https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
7 lines
186 B
Bash
7 lines
186 B
Bash
make_grilo_find_plugins() {
|
|
if [ -d "$1"/lib/grilo-0.3 ]; then
|
|
addToSearchPath GRL_PLUGIN_PATH "$1/lib/grilo-0.3"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" make_grilo_find_plugins
|