diff options
author | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-02-12 11:15:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 11:15:54 +0100 |
commit | bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f (patch) | |
tree | 995d462f5a37817a8c09e6e4b35eca72e9a4774e /pkgs/applications/editors/neovim | |
parent | 4a9a73c62698fc0f61a2f30aa8f843e45f929002 (diff) | |
download | nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar.gz nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar.bz2 nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar.lz nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar.xz nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.tar.zst nixlib-bd6def34e2694e5eb4a8e2f26c6b75c152b4fe6f.zip |
neovimUtils.buildNeovimPlugin: use version from derivation if missing (#288251)
Trying to use: `plugin = pkgs.neovimUtils.buildNeovimPlugin { luaAttr = "rocks-nvim"; };` fails with: ``` error: attribute 'version' missing at /nix/store/0ww4wsg5q5hmnzv06a0k1q32jc49y7gi-source/pkgs/applications/editors/neovim/build-neovim-plugin.nix:28:19: 27| })).overrideAttrs (drv: { 28| version = attrs.version; | ^ 29| rockspecVersion = drv.rockspecVersion; ``` This PR fixes it.
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r-- | pkgs/applications/editors/neovim/build-neovim-plugin.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/build-neovim-plugin.nix b/pkgs/applications/editors/neovim/build-neovim-plugin.nix index b99733523b87..251844aa87db 100644 --- a/pkgs/applications/editors/neovim/build-neovim-plugin.nix +++ b/pkgs/applications/editors/neovim/build-neovim-plugin.nix @@ -25,7 +25,7 @@ in lua_modules_path = "lua" ''; })).overrideAttrs (drv: { - version = attrs.version; + version = attrs.version or drv.version; rockspecVersion = drv.rockspecVersion; }); |