summary refs log tree commit diff
path: root/maintainers/scripts
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2019-09-07 19:55:30 +0900
committerMatthieu Coudron <mattator@gmail.com>2019-09-07 19:59:09 +0900
commit89c3c1cb4284e4712b8509349620a0cd07c39bce (patch)
treee70afa442291b1e1104256c441238fb7806fb145 /maintainers/scripts
parentdb1f05c763fd96c24d08e0b89497f251eb2cdf03 (diff)
downloadnixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar.gz
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar.bz2
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar.lz
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar.xz
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.tar.zst
nixpkgs-89c3c1cb4284e4712b8509349620a0cd07c39bce.zip
update-luarocks-packages: reference only 1 server
we now pass a configuration file when calling luarocks to prevent
impurities.
Diffstat (limited to 'maintainers/scripts')
-rw-r--r--maintainers/scripts/luarocks-config.lua3
-rwxr-xr-xmaintainers/scripts/update-luarocks-packages1
2 files changed, 4 insertions, 0 deletions
diff --git a/maintainers/scripts/luarocks-config.lua b/maintainers/scripts/luarocks-config.lua
new file mode 100644
index 00000000000..40b2d611c32
--- /dev/null
+++ b/maintainers/scripts/luarocks-config.lua
@@ -0,0 +1,3 @@
+rocks_servers = {
+	"https://luarocks.org"
+}
diff --git a/maintainers/scripts/update-luarocks-packages b/maintainers/scripts/update-luarocks-packages
index a8d67d208e3..1a31d71086f 100755
--- a/maintainers/scripts/update-luarocks-packages
+++ b/maintainers/scripts/update-luarocks-packages
@@ -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 :)