From 276ce86a108562f0bca3c779993a29b0419c0b64 Mon Sep 17 00:00:00 2001 From: Lily Ballard Date: Thu, 4 Feb 2021 13:27:38 -0800 Subject: [PATCH] vimacs: don't assume vimPackage has a version attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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 {…}`. --- pkgs/applications/editors/vim/vimacs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vim/vimacs.nix b/pkgs/applications/editors/vim/vimacs.nix index 628b4c46cba5..d98e3b37514f 100644 --- a/pkgs/applications/editors/vim/vimacs.nix +++ b/pkgs/applications/editors/vim/vimacs.nix @@ -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 ];