Adding some abstraction makes main() more readable which is important since it's the main control flow of the script.
parseDrvName
Instructions for adding Vim plugins to nixpkgs can be found here.
nixpkgs