TIL: How to Add New Vim Plugins to nixpkgs Repository
Recently, I wanted to add a Neovim plugin to nixpkgs, so I can then add it to NixVim. I tried following the guide from the docs. However, I kept getting the following errors: nix-shell -p vimPluginsUpdater --run vim-plugins-updater error: … while calling the 'derivationStrict' builtin at /builtin/derivation.nix:9:12: (source not available) … while evaluating derivation 'shell' whose name attribute is located at /nix/store/whhzjfgalghpm34irclh01c0afynmyll-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:300:7 … while evaluating attribute 'buildInputs' of derivation 'shell' at /nix/store/whhzjfgalghpm34irclh01c0afynmyll-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:347:7: 346| depsHostHost = lib.elemAt (lib.elemAt dependencies 1) 0; 347| buildInputs = lib.elemAt (lib.elemAt dependencies 1) 1; | ^ 348| depsTargetTarget = lib.elemAt (lib.elemAt dependencies 2) 0; error: undefined variable 'vimPluginsUpdater' at «string»:1:107: 1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (vimPluginsUpdater) ]; } "" Or I was getting 429 network errors, too many requests to GitHub. ...