summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/emilua/setup-hook.sh
blob: 034b52796468ea13f9a0382ce345f97add1df565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addEmiluaPath() {
  addToSearchPathWithCustomDelimiter : EMILUA_PATH $1/@sitePackages@
}

toEmiluaPath() {
    local paths="$1"
    local result=
    for i in $paths; do
        p="$i/@sitePackages@"
        result="${result}${result:+:}$p"
    done
    echo $result
}

if [ -z "${dontAddEmiluaPath:-}" ]; then
    addEnvHooks "$hostOffset" addEmiluaPath
fi