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:
Lily Ballard 2021-02-04 13:27:38 -08:00
parent a4c82bcd7a
commit 276ce86a10

View file

@ -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 ];