Skip to content

Commit

Permalink
vimacs: don't assume vimPackage has a version attribute
Browse files Browse the repository at this point in the history
`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 {…}`.
  • Loading branch information
lilyball committed Feb 4, 2021
1 parent a4c82bc commit 276ce86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/editors/vim/vimacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 276ce86

Please sign in to comment.