diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 11:55:43 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-24 20:26:07 -0300 |
commit | 3f19fc37a3557d31b242b220b52c7a1358572f57 (patch) | |
tree | 5b7f91299e0f8633512862c96755fb483349fc57 | |
parent | a2122813921a74f1c6f04f113b07f89484376765 (diff) |
Move misc/vim-plugins to applications/editors/vim/plugins
-rw-r--r-- | doc/contributing/submitting-changes.chapter.md | 2 | ||||
-rw-r--r-- | doc/languages-frameworks/vim.section.md | 8 | ||||
-rw-r--r-- | maintainers/scripts/pluginupdate.py | 2 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/aliases.nix (renamed from pkgs/misc/vim-plugins/aliases.nix) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/build-vim-plugin.nix (renamed from pkgs/misc/vim-plugins/build-vim-plugin.nix) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/default.nix (renamed from pkgs/misc/vim-plugins/default.nix) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/deprecated.json (renamed from pkgs/misc/vim-plugins/deprecated.json) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/generated.nix (renamed from pkgs/misc/vim-plugins/generated.nix) | 2 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/markdown-preview-nvim/fix-node-paths.patch (renamed from pkgs/misc/vim-plugins/markdown-preview-nvim/fix-node-paths.patch) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/markdown-preview-nvim/package.json (renamed from pkgs/misc/vim-plugins/markdown-preview-nvim/package.json) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/overrides.nix (renamed from pkgs/misc/vim-plugins/overrides.nix) | 2 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch (renamed from pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch (renamed from pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch (renamed from pkgs/misc/vim-plugins/patches/sniprun/fix-paths.patch) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/patches/vim-grammarous/set_default_languagetool.patch (renamed from pkgs/misc/vim-plugins/patches/vim-grammarous/set_default_languagetool.patch) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/readme.md (renamed from pkgs/misc/vim-plugins/readme.md) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/update-shell.nix (renamed from pkgs/misc/vim-plugins/update-shell.nix) | 0 | ||||
-rwxr-xr-x | pkgs/applications/editors/vim/plugins/update.py (renamed from pkgs/misc/vim-plugins/update.py) | 2 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim-gen-doc-hook.sh (renamed from pkgs/misc/vim-plugins/vim-gen-doc-hook.sh) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim-plugin-names (renamed from pkgs/misc/vim-plugins/vim-plugin-names) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim-utils.nix (renamed from pkgs/misc/vim-plugins/vim-utils.nix) | 3 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim2nix/README.txt (renamed from pkgs/misc/vim-plugins/vim2nix/README.txt) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim2nix/addon-info.json (renamed from pkgs/misc/vim-plugins/vim2nix/addon-info.json) | 0 | ||||
-rw-r--r-- | pkgs/applications/editors/vim/plugins/vim2nix/autoload/nix.vim (renamed from pkgs/misc/vim-plugins/vim2nix/autoload/nix.vim) | 0 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.json | 2 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/nix/statix/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/text/rosie/default.nix | 5 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
29 files changed, 21 insertions, 19 deletions
diff --git a/doc/contributing/submitting-changes.chapter.md b/doc/contributing/submitting-changes.chapter.md index d5b5f5a601752..109d051c016fa 100644 --- a/doc/contributing/submitting-changes.chapter.md +++ b/doc/contributing/submitting-changes.chapter.md @@ -98,7 +98,7 @@ We use jbidwatcher as an example for a discontinued project here. 1. Create a new branch for your change, e.g. `git checkout -b jbidwatcher` 1. Remove the actual package including its directory, e.g. `rm -rf pkgs/applications/misc/jbidwatcher` 1. Remove the package from the list of all packages (`pkgs/top-level/all-packages.nix`). -1. Add an alias for the package name in `pkgs/top-level/aliases.nix` (There is also `pkgs/misc/vim-plugins/aliases.nix`. Package sets typically do not have aliases, so we can't add them there.) +1. Add an alias for the package name in `pkgs/top-level/aliases.nix` (There is also `pkgs/applications/editors/vim/plugins/aliases.nix`. Package sets typically do not have aliases, so we can't add them there.) For example in this case: diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index 4ffd6736e238a..a615d585b151c 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -309,9 +309,9 @@ Sample output2: ## Adding new plugins to nixpkgs {#adding-new-plugins-to-nixpkgs} -Nix expressions for Vim plugins are stored in [pkgs/misc/vim-plugins](https://github.com/NixOS/nixpkgs/tree/master/pkgs/misc/vim-plugins). For the vast majority of plugins, Nix expressions are automatically generated by running [`./update.py`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/update.py). This creates a [generated.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/generated.nix) file based on the plugins listed in [vim-plugin-names](https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/vim-plugin-names). Plugins are listed in alphabetical order in `vim-plugin-names` using the format `[github username]/[repository]@[gitref]`. For example https://github.com/scrooloose/nerdtree becomes `scrooloose/nerdtree`. +Nix expressions for Vim plugins are stored in [pkgs/applications/editors/vim/plugins](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins). For the vast majority of plugins, Nix expressions are automatically generated by running [`./update.py`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/update.py). This creates a [generated.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/generated.nix) file based on the plugins listed in [vim-plugin-names](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/vim-plugin-names). Plugins are listed in alphabetical order in `vim-plugin-names` using the format `[github username]/[repository]@[gitref]`. For example https://github.com/scrooloose/nerdtree becomes `scrooloose/nerdtree`. -Some plugins require overrides in order to function properly. Overrides are placed in [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/overrides.nix). Overrides are most often required when a plugin requires some dependencies, or extra steps are required during the build process. For example `deoplete-fish` requires both `deoplete-nvim` and `vim-fish`, and so the following override was added: +Some plugins require overrides in order to function properly. Overrides are placed in [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/overrides.nix). Overrides are most often required when a plugin requires some dependencies, or extra steps are required during the build process. For example `deoplete-fish` requires both `deoplete-nvim` and `vim-fish`, and so the following override was added: ```nix deoplete-fish = super.deoplete-fish.overrideAttrs(old: { @@ -330,13 +330,13 @@ Finally, there are some plugins that are also packaged in nodePackages because t Run the update script with a GitHub API token that has at least `public_repo` access. Running the script without the token is likely to result in rate-limiting (429 errors). For steps on creating an API token, please refer to [GitHub's token documentation](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token). ```sh -GITHUB_API_TOKEN=my_token ./pkgs/misc/vim-plugins/update.py +GITHUB_API_TOKEN=my_token ./pkgs/applications/editors/vim/plugins/update.py ``` Alternatively, set the number of processes to a lower count to avoid rate-limiting. ```sh -./pkgs/misc/vim-plugins/update.py --proc 1 +./pkgs/applications/editors/vim/plugins/update.py --proc 1 ``` ## Important repositories {#important-repositories} diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py index 0fad92481bba2..877e664403203 100644 --- a/maintainers/scripts/pluginupdate.py +++ b/maintainers/scripts/pluginupdate.py @@ -1,4 +1,4 @@ -# Used by pkgs/misc/vim-plugins/update.py and pkgs/applications/editors/kakoune/plugins/update.py +# Used by pkgs/applications/editors/vim/plugins/update.py and pkgs/applications/editors/kakoune/plugins/update.py # format: # $ nix run nixpkgs.python3Packages.black -c black update.py diff --git a/pkgs/misc/vim-plugins/aliases.nix b/pkgs/applications/editors/vim/plugins/aliases.nix index 955590cafe318..955590cafe318 100644 --- a/pkgs/misc/vim-plugins/aliases.nix +++ b/pkgs/applications/editors/vim/plugins/aliases.nix diff --git a/pkgs/misc/vim-plugins/build-vim-plugin.nix b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix index 3d36edb32325c..3d36edb32325c 100644 --- a/pkgs/misc/vim-plugins/build-vim-plugin.nix +++ b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix diff --git a/pkgs/misc/vim-plugins/default.nix b/pkgs/applications/editors/vim/plugins/default.nix index 9bfcf44318637..9bfcf44318637 100644 --- a/pkgs/misc/vim-plugins/default.nix +++ b/pkgs/applications/editors/vim/plugins/default.nix diff --git a/pkgs/misc/vim-plugins/deprecated.json b/pkgs/applications/editors/vim/plugins/deprecated.json index b185aa7483d80..b185aa7483d80 100644 --- a/pkgs/misc/vim-plugins/deprecated.json +++ b/pkgs/applications/editors/vim/plugins/deprecated.json diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index b6869ba872c91..7b9fb616d1c5b 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -1,4 +1,4 @@ -# This file has been generated by ./pkgs/misc/vim-plugins/update.py. Do not edit! +# This file has been generated by ./pkgs/applications/editors/vim/plugins/update.py. Do not edit! { lib, buildVimPluginFrom2Nix, fetchFromGitHub, fetchgit }: final: prev: diff --git a/pkgs/misc/vim-plugins/markdown-preview-nvim/fix-node-paths.patch b/pkgs/applications/editors/vim/plugins/markdown-preview-nvim/fix-node-paths.patch index 7b09f5b804618..7b09f5b804618 100644 --- a/pkgs/misc/vim-plugins/markdown-preview-nvim/fix-node-paths.patch +++ b/pkgs/applications/editors/vim/plugins/markdown-preview-nvim/fix-node-paths.patch diff --git a/pkgs/misc/vim-plugins/markdown-preview-nvim/package.json b/pkgs/applications/editors/vim/plugins/markdown-preview-nvim/package.json index a3900a91dffdd..a3900a91dffdd 100644 --- a/pkgs/misc/vim-plugins/markdown-preview-nvim/package.json +++ b/pkgs/applications/editors/vim/plugins/markdown-preview-nvim/package.json diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index da04fee9c95f6..059622495731b 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -414,7 +414,7 @@ self: super: { markdown-preview-nvim = super.markdown-preview-nvim.overrideAttrs (old: let # We only need its dependencies `node-modules`. - nodeDep = nodePackages."markdown-preview-nvim-../../misc/vim-plugins/markdown-preview-nvim".overrideAttrs (old: { + nodeDep = nodePackages."markdown-preview-nvim-../../applications/editors/vim/plugins/markdown-preview-nvim".overrideAttrs (old: { dontNpmInstall = true; }); in { diff --git a/pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch b/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch index 62aaba118f20a..62aaba118f20a 100644 --- a/pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch +++ b/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch diff --git a/pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch b/pkgs/applications/editors/vim/plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch index 1cd232654c889..1cd232654c889 100644 --- a/pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch +++ b/pkgs/applications/editors/vim/plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch diff --git a/pkgs/misc/vim-plugins/patches/sniprun/fix-paths.patch b/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch index f3203e0075762..f3203e0075762 100644 --- a/pkgs/misc/vim-plugins/patches/sniprun/fix-paths.patch +++ b/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch diff --git a/pkgs/misc/vim-plugins/patches/vim-grammarous/set_default_languagetool.patch b/pkgs/applications/editors/vim/plugins/patches/vim-grammarous/set_default_languagetool.patch index 72c928d1a9711..72c928d1a9711 100644 --- a/pkgs/misc/vim-plugins/patches/vim-grammarous/set_default_languagetool.patch +++ b/pkgs/applications/editors/vim/plugins/patches/vim-grammarous/set_default_languagetool.patch diff --git a/pkgs/misc/vim-plugins/readme.md b/pkgs/applications/editors/vim/plugins/readme.md index 0758a3e959819..0758a3e959819 100644 --- a/pkgs/misc/vim-plugins/readme.md +++ b/pkgs/applications/editors/vim/plugins/readme.md diff --git a/pkgs/misc/vim-plugins/update-shell.nix b/pkgs/applications/editors/vim/plugins/update-shell.nix index e1b727c49e046..e1b727c49e046 100644 --- a/pkgs/misc/vim-plugins/update-shell.nix +++ b/pkgs/applications/editors/vim/plugins/update-shell.nix diff --git a/pkgs/misc/vim-plugins/update.py b/pkgs/applications/editors/vim/plugins/update.py index d9adc66674827..7a631c1c7dc5b 100755 --- a/pkgs/misc/vim-plugins/update.py +++ b/pkgs/applications/editors/vim/plugins/update.py @@ -47,7 +47,7 @@ let in lib.filterAttrs (n: v: v != null) checksums)""" HEADER = ( - "# This file has been generated by ./pkgs/misc/vim-plugins/update.py. Do not edit!" + "# This file has been generated by ./pkgs/applications/editors/vim/plugins/update.py. Do not edit!" ) diff --git a/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh b/pkgs/applications/editors/vim/plugins/vim-gen-doc-hook.sh index d5f0a00ebcc28..d5f0a00ebcc28 100644 --- a/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh +++ b/pkgs/applications/editors/vim/plugins/vim-gen-doc-hook.sh diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index 45b25f5f4d0c6..45b25f5f4d0c6 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names diff --git a/pkgs/misc/vim-plugins/vim-utils.nix b/pkgs/applications/editors/vim/plugins/vim-utils.nix index 128b969c35753..4183b6214351a 100644 --- a/pkgs/misc/vim-plugins/vim-utils.nix +++ b/pkgs/applications/editors/vim/plugins/vim-utils.nix @@ -82,7 +82,8 @@ See vimHelpTags sample code below. CONTRIBUTING AND CUSTOMIZING ============================ -The example file pkgs/misc/vim-plugins/default.nix provides both: +The example file pkgs/applications/editors/vim/plugins/default.nix provides +both: * manually mantained plugins * plugins created by VAM's nix#ExportPluginsForNix implementation diff --git a/pkgs/misc/vim-plugins/vim2nix/README.txt b/pkgs/applications/editors/vim/plugins/vim2nix/README.txt index 4263481461f1d..4263481461f1d 100644 --- a/pkgs/misc/vim-plugins/vim2nix/README.txt +++ b/pkgs/applications/editors/vim/plugins/vim2nix/README.txt diff --git a/pkgs/misc/vim-plugins/vim2nix/addon-info.json b/pkgs/applications/editors/vim/plugins/vim2nix/addon-info.json index 93ca9bc129b5b..93ca9bc129b5b 100644 --- a/pkgs/misc/vim-plugins/vim2nix/addon-info.json +++ b/pkgs/applications/editors/vim/plugins/vim2nix/addon-info.json diff --git a/pkgs/misc/vim-plugins/vim2nix/autoload/nix.vim b/pkgs/applications/editors/vim/plugins/vim2nix/autoload/nix.vim index 0ddbeaae6be1c..0ddbeaae6be1c 100644 --- a/pkgs/misc/vim-plugins/vim2nix/autoload/nix.vim +++ b/pkgs/applications/editors/vim/plugins/vim2nix/autoload/nix.vim diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 9fa420975af1e..2803431089313 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -198,7 +198,7 @@ , "markdownlint-cli" , "markdownlint-cli2" , "markdown-link-check" -, {"markdown-preview-nvim": "../../misc/vim-plugins/markdown-preview-nvim"} +, {"markdown-preview-nvim": "../../applications/editors/vim/plugins/markdown-preview-nvim"} , "mastodon-bot" , "mathjax" , "meat" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index 3adfd4becd37d..54fa82135c549 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -107807,11 +107807,11 @@ in bypassCache = true; reconstructLock = true; }; - "markdown-preview-nvim-../../misc/vim-plugins/markdown-preview-nvim" = nodeEnv.buildNodePackage { + "markdown-preview-nvim-../../applications/editors/vim/plugins/markdown-preview-nvim" = nodeEnv.buildNodePackage { name = "markdown-preview-vim"; packageName = "markdown-preview-vim"; version = "0.0.1"; - src = ../../misc/vim-plugins/markdown-preview-nvim; + src = ../../applications/editors/vim/plugins/markdown-preview-nvim; dependencies = [ sources."accepts-1.3.8" sources."after-0.8.2" diff --git a/pkgs/tools/nix/statix/default.nix b/pkgs/tools/nix/statix/default.nix index 0f3a1c10e3557..d25f51ae5aa26 100644 --- a/pkgs/tools/nix/statix/default.nix +++ b/pkgs/tools/nix/statix/default.nix @@ -2,7 +2,8 @@ rustPlatform.buildRustPackage rec { pname = "statix"; - # also update version of the vim plugin in pkgs/misc/vim-plugins/overrides.nix + # also update version of the vim plugin in + # pkgs/applications/editors/vim/plugins/overrides.nix # the version can be found in flake.nix of the source code version = "0.5.4"; diff --git a/pkgs/tools/text/rosie/default.nix b/pkgs/tools/text/rosie/default.nix index 4f70f972b683b..a4edf55f7504f 100644 --- a/pkgs/tools/text/rosie/default.nix +++ b/pkgs/tools/text/rosie/default.nix @@ -1,5 +1,5 @@ -{ stdenv -, lib +{ lib +, stdenv , fetchgit , libbsd , readline @@ -8,6 +8,7 @@ stdenv.mkDerivation rec { pname = "rosie"; version = "unstable-2020-01-11"; + src = fetchgit { url = "https://gitlab.com/rosie-pattern-language/rosie"; rev = "670e9027563609ba2ea31e14e2621a1302742795"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1656f63391885..f360f8f31b5aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33999,12 +33999,11 @@ with pkgs; viewnior = callPackage ../applications/graphics/viewnior { }; - - vimUtils = callPackage ../misc/vim-plugins/vim-utils.nix { + vimUtils = callPackage ../applications/editors/vim/plugins/vim-utils.nix { inherit (lua51Packages) hasLuaModule; }; - vimPlugins = recurseIntoAttrs (callPackage ../misc/vim-plugins { + vimPlugins = recurseIntoAttrs (callPackage ../applications/editors/vim/plugins { llvmPackages = llvmPackages_6; luaPackages = lua51Packages; }); |