Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/neovim: fix withRuby, add with{Python3,NodeJs}

`withRuby` was declared but not referenced before, this commit fixes
this issue.

It also adds support for `withPython3` and `withNodeJs`.

authored by Thiago Kenji Okada and committed by Matthieu Coudron b142bd35 3121d7ea

+14 -2
+14 -2
nixos/modules/programs/neovim.nix
··· 41 41 withRuby = mkOption { 42 42 type = types.bool; 43 43 default = true; 44 - description = "Enable ruby provider."; 44 + description = "Enable Ruby provider."; 45 + }; 46 + 47 + withPython3 = mkOption { 48 + type = types.bool; 49 + default = true; 50 + description = "Enable Python 3 provider."; 51 + }; 52 + 53 + withNodeJs = mkOption { 54 + type = types.bool; 55 + default = false; 56 + description = "Enable Node provider."; 45 57 }; 46 58 47 59 configure = mkOption { ··· 142 154 environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim"); 143 155 144 156 programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package { 145 - inherit (cfg) viAlias vimAlias; 157 + inherit (cfg) viAlias vimAlias withPython3 withNodeJs withRuby; 146 158 configure = cfg.configure // { 147 159 148 160 customRC = (cfg.configure.customRC or "") + ''