about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2024-03-07 16:11:40 +0100
committerVladimír Čunát <v@cunat.cz>2024-03-07 16:11:40 +0100
commit0f6ddea2ff3b20c536b1530f66ee306014b39d83 (patch)
tree7c42c05e272426f9686947f876cd546716ef292f /pkgs/development/interpreters
parent590e65a7b3a132f3b54145cd714749ea214f333b (diff)
downloadnixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar.gz
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar.bz2
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar.lz
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar.xz
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.tar.zst
nixlib-0f6ddea2ff3b20c536b1530f66ee306014b39d83.zip
Revert #289135: lua*: support relative modules even when there are system modules
This reverts commit ca6452f8edba8aaf9252b692ac821f1313ec9e7a.
Regressions appeared and they need time to get resolved; see:
https://github.com/NixOS/nixpkgs/pull/289135#issuecomment-1978270396
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/lua-5/hooks/setup-hook.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/lua-5/hooks/setup-hook.sh b/pkgs/development/interpreters/lua-5/hooks/setup-hook.sh
index f5843d888247..1c445b82afde 100644
--- a/pkgs/development/interpreters/lua-5/hooks/setup-hook.sh
+++ b/pkgs/development/interpreters/lua-5/hooks/setup-hook.sh
@@ -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}"
 }