mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
f3d6b2ebef
Signed-off-by: lucasew <lucas59356@gmail.com>
18 lines
358 B
Bash
18 lines
358 B
Bash
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
|