mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
Revert #289135: lua*: support relative modules even when there are system modules
This reverts commit ca6452f8ed
.
Regressions appeared and they need time to get resolved; see:
https://github.com/NixOS/nixpkgs/pull/289135#issuecomment-1978270396
This commit is contained in:
parent
590e65a7b3
commit
0f6ddea2ff
@ -22,11 +22,6 @@ addToLuaSearchPathWithCustomDelimiter() {
|
||||
# export only if we haven't already got this dir in the search path
|
||||
if [[ ${!varName-} == *"$absPattern"* ]]; then return; fi
|
||||
|
||||
# if the path variable has not yet been set, initialize it to ";;"
|
||||
# this is a magic value that will be replaced by the default,
|
||||
# allowing relative modules to be used even when there are system modules.
|
||||
if [[ -v "${varName}" ]]; then export "${varName}=;;"; fi
|
||||
|
||||
export "${varName}=${!varName:+${!varName};}${absPattern}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user