mirror of
https://github.com/nix-community/home-manager
synced 2024-06-14 02:33:38 +02:00
neovim: add test for extraWrapperArgs
This commit is contained in:
parent
6aed4bbf55
commit
8e86b367b8
|
@ -20,6 +20,17 @@ with lib;
|
|||
};
|
||||
}
|
||||
];
|
||||
extraWrapperArgs = let buildDeps = with pkgs; [ stdenv.cc.cc zlib ];
|
||||
in [
|
||||
"--suffix"
|
||||
"LIBRARY_PATH"
|
||||
":"
|
||||
"${lib.makeLibraryPath buildDeps}"
|
||||
"--suffix"
|
||||
"PKG_CONFIG_PATH"
|
||||
":"
|
||||
"${lib.makeSearchPathOutput "dev" "lib/pkgconfig" buildDeps}"
|
||||
];
|
||||
}
|
||||
{
|
||||
extraPython3Packages = ps: with ps; [ jedi pynvim ];
|
||||
|
@ -33,7 +44,10 @@ with lib;
|
|||
|
||||
nmt.script = ''
|
||||
ftplugin="home-files/.config/nvim/after/ftplugin/c.vim"
|
||||
nvimbin="home-path/bin/nvim"
|
||||
assertFileExists "$ftplugin"
|
||||
assertFileRegex "$nvimbin" 'LIBRARY_PATH'
|
||||
assertFileRegex "$nvimbin" 'PKG_CONFIG_PATH'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user