Unverified Commit bd6def34 authored by Matthieu Coudron's avatar Matthieu Coudron Committed by GitHub
Browse files

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.
parent 4a9a73c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ in
          lua_modules_path = "lua"
        '';
        })).overrideAttrs (drv: {
        version = attrs.version;
        version = attrs.version or drv.version;
        rockspecVersion = drv.rockspecVersion;
      });