mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
# This is for plugins not in nixpkgs
|
|
# e.g. intellitab.nvim
|
|
#
|
|
# This is generated through nvfetcher, the plugins are defined in nvfetcher.toml.
|
|
# You can update the plugins by running `nvfetcher` in this directory
|
|
{pkgs, ...}: let
|
|
sources = pkgs.callPackage ./_sources/generated.nix {};
|
|
in {
|
|
coq-nvim = pkgs.vimUtils.buildVimPlugin {
|
|
inherit (sources.coq-nvim) pname version src;
|
|
|
|
passthru.python3Dependencies = ps: [
|
|
ps.pynvim
|
|
ps.pyyaml
|
|
(ps.buildPythonPackage {
|
|
inherit (sources.pynvim_pp) pname version src;
|
|
|
|
propagatedBuildInputs = [pkgs.python3Packages.pynvim];
|
|
})
|
|
(ps.buildPythonPackage {
|
|
inherit (sources.std2) pname version src;
|
|
doCheck = true;
|
|
})
|
|
];
|
|
|
|
# We need some patches so it stops complaining about not being in a venv
|
|
postPatch = ''
|
|
substituteInPlace coq/consts.py \
|
|
--replace "VARS = TOP_LEVEL / \".vars\"" "VARS = Path.home() / \".cache/home/vars\"";
|
|
substituteInPlace coq/__main__.py \
|
|
--replace "_IN_VENV = _RT_PY == _EXEC_PATH" "_IN_VENV = True"
|
|
'';
|
|
};
|
|
}
|