Lua generate nix packages from luarocks (#54978)
* lua: generate packages from luarocks * luarocks-nix: update * removed packages already available in nixpkgs * adressing reviews update script can now accept another csv file as input with -c * Remove obsolete comment
This commit is contained in:
committed by
Michael Raskin
parent
0955567a7d
commit
2ba891788b
@@ -1,7 +1,7 @@
|
||||
# set -e
|
||||
|
||||
nix_print() {
|
||||
if (( "${NIX_DEBUG:-0}" >= $1 )); then
|
||||
if [ ${NIX_DEBUG:-0} -ge $1 ]; then
|
||||
echo "$2"
|
||||
fi
|
||||
}
|
||||
@@ -32,13 +32,13 @@ addToLuaPath() {
|
||||
cd "$dir"
|
||||
for pattern in @luapathsearchpaths@;
|
||||
do
|
||||
addToLuaSearchPathWithCustomDelimiter LUA_PATH "$PWD/$pattern"
|
||||
addToLuaSearchPathWithCustomDelimiter NIX_LUA_PATH "$PWD/$pattern"
|
||||
done
|
||||
|
||||
# LUA_CPATH
|
||||
for pattern in @luacpathsearchpaths@;
|
||||
do
|
||||
addToLuaSearchPathWithCustomDelimiter LUA_CPATH "$PWD/$pattern"
|
||||
addToLuaSearchPathWithCustomDelimiter NIX_LUA_CPATH "$PWD/$pattern"
|
||||
done
|
||||
cd - >/dev/null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user