vimacs: don't assume vimPackage has a version attribute
`vimPackage` may not have a version attribute if it was specified using a full name instead, such as with a `buildEnv` call. This can happen right now on Darwin when `vimPackage` is `macvim.configure {…}`.
This commit is contained in:
parent
a4c82bcd7a
commit
276ce86a10
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vimacs";
|
||||
version = vimPackage.version;
|
||||
version = lib.getVersion vimPackage;
|
||||
vimPackage = if useMacvim then macvim else vim_configurable;
|
||||
|
||||
buildInputs = [ vimPackage vimPlugins.vimacs ];
|
||||
|
|
Loading…
Reference in a new issue