repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vimPlugins: disallow packaging plugins that are already in luaPackages (#376370)
[NixPkgs.git]
/
pkgs
/
development
/
interpreters
/
emilua
/
setup-hook.sh
blob
034b52796468ea13f9a0382ce345f97add1df565
1
addEmiluaPath
() {
2
addToSearchPathWithCustomDelimiter
:
EMILUA_PATH
$1
/
@sitePackages@
3
}
4
5
toEmiluaPath
() {
6
local
paths
=
"
$1
"
7
local
result
=
8
for
i
in
$paths
;
do
9
p
=
"
$i
/@sitePackages@"
10
result
=
"
${result}
${result:+:}
$p
"
11
done
12
echo
$result
13
}
14
15
if
[
-z
"
${dontAddEmiluaPath:-}
"
];
then
16
addEnvHooks
"
$hostOffset
"
addEmiluaPath
17
fi