2021-12-12 12:39:08 +00:00
|
|
|
# This is for plugins not in nixpkgs
|
|
|
|
# e.g. intellitab.nvim
|
2023-03-14 23:48:27 +01:00
|
|
|
#
|
|
|
|
# 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;
|
2022-01-09 23:00:19 +00:00
|
|
|
|
|
|
|
passthru.python3Dependencies = ps: [
|
|
|
|
ps.pynvim
|
|
|
|
ps.pyyaml
|
2023-03-14 23:48:27 +01:00
|
|
|
(ps.buildPythonPackage {
|
|
|
|
inherit (sources.pynvim_pp) pname version src;
|
2022-01-09 23:00:19 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
propagatedBuildInputs = [pkgs.python3Packages.pynvim];
|
2022-01-09 23:00:19 +00:00
|
|
|
})
|
2023-03-14 23:48:27 +01:00
|
|
|
(ps.buildPythonPackage {
|
|
|
|
inherit (sources.std2) pname version src;
|
2022-12-30 10:02:59 -05:00
|
|
|
doCheck = true;
|
2022-01-09 23:00:19 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
'';
|
|
|
|
};
|
2021-12-12 12:39:08 +00:00
|
|
|
}
|