mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
update-luarocks-packages: reference only 1 server
we now pass a configuration file when calling luarocks to prevent impurities.
This commit is contained in:
parent
db1f05c763
commit
89c3c1cb42
3
maintainers/scripts/luarocks-config.lua
Normal file
3
maintainers/scripts/luarocks-config.lua
Normal file
@ -0,0 +1,3 @@
|
||||
rocks_servers = {
|
||||
"https://luarocks.org"
|
||||
}
|
@ -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 :)
|
||||
|
Loading…
Reference in New Issue
Block a user