···1+2+-- default of luarocks listed at src/luarocks/core/cfg.lua
3+-- keep this list synced with pkgs/build-support/fetchurl/mirrors.nix
4rocks_servers = {
5+ "https://luarocks.org",
6+ "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/"
7}
8version_check_on_fail = false
+6-5
maintainers/scripts/update-luarocks-packages
···31PKG_LIST="maintainers/scripts/luarocks-packages.csv"
32TMP_FILE="$(mktemp)"
33GENERATED_NIXFILE="pkgs/development/lua-modules/generated-packages.nix"
34-LUAROCKS_CONFIG="$NIXPKGS_PATH/maintainers/scripts/luarocks-config.lua"
3536HEADER = """/* {GENERATED_NIXFILE} is an auto-generated file -- DO NOT EDIT!
37Regenerate it with:
···158 Our cache key associates "p.name-p.version" to its rockspec
159 '''
160 log.debug("Generating nix expression for %s", plug.name)
161- cmd = [ "luarocks", "nix"]
01620163164 if plug.maintainers:
165 cmd.append(f"--maintainers={plug.maintainers}")
166167- # updates plugin directly from its repository
168- print("server: [%s]" % plug.server)
169 # if plug.server == "src":
170 if plug.src != "":
171 if plug.src is None:
···194 cmd.append(f"--lua-dir={lua_drv_path}/bin")
195196 log.debug("running %s", ' '.join(cmd))
197- output = subprocess.check_output(cmd, text=True)
0198 output = "callPackage(" + output.strip() + ") {};\n\n"
199 return (plug, output)
200
···31PKG_LIST="maintainers/scripts/luarocks-packages.csv"
32TMP_FILE="$(mktemp)"
33GENERATED_NIXFILE="pkgs/development/lua-modules/generated-packages.nix"
34+LUAROCKS_CONFIG="maintainers/scripts/luarocks-config.lua"
3536HEADER = """/* {GENERATED_NIXFILE} is an auto-generated file -- DO NOT EDIT!
37Regenerate it with:
···158 Our cache key associates "p.name-p.version" to its rockspec
159 '''
160 log.debug("Generating nix expression for %s", plug.name)
161+ custom_env = os.environ.copy()
162+ custom_env['LUAROCKS_CONFIG'] = LUAROCKS_CONFIG
163164+ cmd = [ "luarocks", "nix"]
165166 if plug.maintainers:
167 cmd.append(f"--maintainers={plug.maintainers}")
16800169 # if plug.server == "src":
170 if plug.src != "":
171 if plug.src is None:
···194 cmd.append(f"--lua-dir={lua_drv_path}/bin")
195196 log.debug("running %s", ' '.join(cmd))
197+198+ output = subprocess.check_output(cmd, env=custom_env, text=True)
199 output = "callPackage(" + output.strip() + ") {};\n\n"
200 return (plug, output)
201
···121 this version for the entire lifecycle of the 22.11 release.
122 </para>
123 </listitem>
00000000124 </itemizedlist>
125 </section>
126 <section xml:id="sec-release-22.11-notable-changes">
···121 this version for the entire lifecycle of the 22.11 release.
122 </para>
123 </listitem>
124+ <listitem>
125+ <para>
126+ (Neo)Vim can not be configured with
127+ <literal>configure.pathogen</literal> anymore to reduce
128+ maintainance burden. Use <literal>configure.packages</literal>
129+ instead.
130+ </para>
131+ </listitem>
132 </itemizedlist>
133 </section>
134 <section xml:id="sec-release-22.11-notable-changes">
+3
nixos/doc/manual/release-notes/rl-2211.section.md
···50- PHP 7.4 is no longer supported due to upstream not supporting this
51 version for the entire lifecycle of the 22.11 release.
5200053<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
5455## Other Notable Changes {#sec-release-22.11-notable-changes}
···50- PHP 7.4 is no longer supported due to upstream not supporting this
51 version for the entire lifecycle of the 22.11 release.
5253+- (Neo)Vim can not be configured with `configure.pathogen` anymore to reduce maintainance burden.
54+Use `configure.packages` instead.
55+56<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
5758## Other Notable Changes {#sec-release-22.11-notable-changes}
···150 # and do `:call deoplete#enable()`. It will print an error if the remote
151 # plugin is not registered.
152 test_nvim_with_remote_plugin = neovim.override {
153- extraName = "-pathogen-remote";
154- configure.pathogen.pluginNames = with vimPlugins; [ deoplete-nvim ];
155 };
156157 # only neovim makes use of `requiredPlugins`, test this here
···150 # and do `:call deoplete#enable()`. It will print an error if the remote
151 # plugin is not registered.
152 test_nvim_with_remote_plugin = neovim.override {
153+ extraName = "-remote";
154+ configure.packages.foo.start = with vimPlugins; [ deoplete-nvim ];
155 };
156157 # only neovim makes use of `requiredPlugins`, test this here
···51 # full documentation at github.com/MarcWeber/vim-addon-manager
52 ];
5354- # there is a pathogen implementation as well, but its startup is slower and [VAM] has more feature
55- # vimrcConfig.pathogen.knownPlugins = vimPlugins; # optional
56- # vimrcConfig.pathogen.pluginNames = ["vim-addon-nix"];
57 };
5859WHAT IS A VIM PLUGIN?
···103contribute to vim-pi so that plugins can be updated automatically.
104105106-CREATING DERVITATIONS AUTOMATICALLY BY PLUGIN NAME
107==================================================
108Most convenient is to use a ~/.vim-scripts file putting a plugin name into each line
109as documented by [VAM]'s README.md
···277 }:
278279 let
280- /* pathogen mostly can set &rtp at startup time. Its used very commonly.
281 */
282 pathogenImpl = let
283 knownPlugins = pathogen.knownPlugins or vimPlugins;
284285 plugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) pathogen.pluginNames);
286287- pluginsEnv = buildEnv {
288- name = "pathogen-plugin-env";
289- paths = map (x: "${x}/${rtpPath}") plugins;
290 };
291 in
292- ''
293- let &rtp.=(empty(&rtp)?"":',')."${vimPlugins.vim-pathogen.rtp}"
294- execute pathogen#infect('${pluginsEnv}/{}')
295-296- filetype indent plugin on | syn on
297- '';
298299 /* vim-plug is an extremely popular vim plugin manager.
300 */
···51 # full documentation at github.com/MarcWeber/vim-addon-manager
52 ];
5300054 };
5556WHAT IS A VIM PLUGIN?
···100contribute to vim-pi so that plugins can be updated automatically.
101102103+CREATING DERIVATIONS AUTOMATICALLY BY PLUGIN NAME
104==================================================
105Most convenient is to use a ~/.vim-scripts file putting a plugin name into each line
106as documented by [VAM]'s README.md
···274 }:
275276 let
277+ /* pathogen mostly can set &rtp at startup time. Deprecated.
278 */
279 pathogenImpl = let
280 knownPlugins = pathogen.knownPlugins or vimPlugins;
281282 plugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) pathogen.pluginNames);
283284+ pathogenPackages.pathogen = lib.warn "'pathogen' attribute is deprecated. Use 'packages' instead in your vim configuration" {
285+ start = plugins;
0286 };
287 in
288+ nativeImpl pathogenPackages;
00000289290 /* vim-plug is an extremely popular vim plugin manager.
291 */