update-luarocks-package: fix mirrors
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
-- default of luarocks listed at src/luarocks/core/cfg.lua
|
||||||
|
-- keep this list synced with pkgs/build-support/fetchurl/mirrors.nix
|
||||||
rocks_servers = {
|
rocks_servers = {
|
||||||
"https://luarocks.org"
|
"https://luarocks.org",
|
||||||
|
"https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/"
|
||||||
}
|
}
|
||||||
version_check_on_fail = false
|
version_check_on_fail = false
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ from pluginupdate import Editor, update_plugins, FetchConfig, CleanEnvironment
|
|||||||
PKG_LIST="maintainers/scripts/luarocks-packages.csv"
|
PKG_LIST="maintainers/scripts/luarocks-packages.csv"
|
||||||
TMP_FILE="$(mktemp)"
|
TMP_FILE="$(mktemp)"
|
||||||
GENERATED_NIXFILE="pkgs/development/lua-modules/generated-packages.nix"
|
GENERATED_NIXFILE="pkgs/development/lua-modules/generated-packages.nix"
|
||||||
LUAROCKS_CONFIG="$NIXPKGS_PATH/maintainers/scripts/luarocks-config.lua"
|
LUAROCKS_CONFIG="maintainers/scripts/luarocks-config.lua"
|
||||||
|
|
||||||
HEADER = """/* {GENERATED_NIXFILE} is an auto-generated file -- DO NOT EDIT!
|
HEADER = """/* {GENERATED_NIXFILE} is an auto-generated file -- DO NOT EDIT!
|
||||||
Regenerate it with:
|
Regenerate it with:
|
||||||
@@ -167,8 +167,6 @@ def generate_pkg_nix(plug: LuaPlugin):
|
|||||||
if plug.maintainers:
|
if plug.maintainers:
|
||||||
cmd.append(f"--maintainers={plug.maintainers}")
|
cmd.append(f"--maintainers={plug.maintainers}")
|
||||||
|
|
||||||
# updates plugin directly from its repository
|
|
||||||
print("server: [%s]" % plug.server)
|
|
||||||
# if plug.server == "src":
|
# if plug.server == "src":
|
||||||
if plug.src != "":
|
if plug.src != "":
|
||||||
if plug.src is None:
|
if plug.src is None:
|
||||||
|
|||||||
@@ -323,7 +323,6 @@
|
|||||||
"https://luarocks.org/"
|
"https://luarocks.org/"
|
||||||
"https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/"
|
"https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/"
|
||||||
"https://luafr.org/moonrocks/"
|
"https://luafr.org/moonrocks/"
|
||||||
"http://luarocks.logiceditor.com/rocks/"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Python PyPI
|
# Python PyPI
|
||||||
|
|||||||
Reference in New Issue
Block a user