Skip to content

Commit

Permalink
attempt fix of libstd missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanisaacs committed Sep 15, 2021
1 parent d4dfad8 commit cf3b479
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/neovimBuilder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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;
};
Expand Down

0 comments on commit cf3b479

Please sign in to comment.