From cf3b47932e0478fe6aecb5dce77afe9ae0ca6418 Mon Sep 17 00:00:00 2001 From: Jordan Isaacs Date: Tue, 14 Sep 2021 22:02:53 -0400 Subject: [PATCH] attempt fix of libstd missing error --- lib/neovimBuilder.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/neovimBuilder.nix b/lib/neovimBuilder.nix index 8e36d9b..71b27d5 100644 --- a/lib/neovimBuilder.nix +++ b/lib/neovimBuilder.nix @@ -3,6 +3,11 @@ { config }: let neovimPlugins = pkgs.neovimPlugins; + + # attempt fix for libstdc++.so.6 no file or directory + myNeovimUnwrapped = pkgs.neovim-unwrapped.overrideAttrs (prev: { + buildInputs = prev.buildInputs ++ [ pkgs.stdenv.cc.cc.lib ]; + }); vimOptions = lib.evalModules { modules = [ @@ -16,13 +21,13 @@ let }; vim = vimOptions.config.vim; -in pkgs.wrapNeovim pkgs.neovim-unwrapped { +in pkgs.wrapNeovim myNeovimUnwrapped { viAlias = true; vimAlias = true; configure = { customRC = vim.configRC; - packages.myVimPackage = with pkgs.vimPlugins; { + packages.myVimPackage = with neovimPlugins; { start = vim.startPlugins; opt = vim.optPlugins; };