update-luarocks-packages: reference only 1 server

we now pass a configuration file when calling luarocks to prevent
impurities.
This commit is contained in:
Matthieu Coudron 2019-09-07 19:55:30 +09:00
parent db1f05c763
commit 89c3c1cb42
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,3 @@
rocks_servers = {
"https://luarocks.org"
}

View File

@ -15,6 +15,7 @@ CSV_FILE="maintainers/scripts/luarocks-packages.csv"
TMP_FILE="$(mktemp)"
# Set in the update-luarocks-shell.nix
NIXPKGS_PATH="$LUAROCKS_NIXPKGS_PATH"
export LUAROCKS_CONFIG="$NIXPKGS_PATH/maintainers/scripts/luarocks-config.lua"
# 10 is a pretty arbitrary number of simultaneous jobs, but it is generally
# impolite to hit a webserver with *too* many simultaneous connections :)