mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
0dbca90d41
and removed the addRtp call that was breaking overrideAttrs
22 lines
612 B
Bash
22 lines
612 B
Bash
# Setup hook for checking whether Python imports succeed
|
|
echo "Sourcing neovim-require-check-hook.sh"
|
|
|
|
neovimRequireCheckHook () {
|
|
echo "Executing neovimRequireCheckHook"
|
|
|
|
if [ -n "$nvimRequireCheck" ]; then
|
|
echo "Check whether the following module can be imported: $nvimRequireCheck"
|
|
|
|
# editorconfig-checker-disable
|
|
export HOME="$TMPDIR"
|
|
@nvimBinary@ -es --headless -n -u NONE -i NONE --clean -V1 \
|
|
--cmd "set rtp+=$out" \
|
|
--cmd "lua require('$nvimRequireCheck')"
|
|
fi
|
|
}
|
|
|
|
echo "Using neovimRequireCheckHook"
|
|
preDistPhases+=" neovimRequireCheckHook"
|
|
|
|
|