Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonApplication,
|
|
makeWrapper,
|
|
nix,
|
|
nix-prefetch-git,
|
|
nurl,
|
|
python3Packages,
|
|
vimPluginsUpdater,
|
|
writeShellScript,
|
|
|
|
# optional
|
|
neovim-unwrapped,
|
|
}:
|
|
buildPythonApplication {
|
|
pname = "vim-plugins-updater";
|
|
version = "0.1";
|
|
|
|
format = "other";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
python3Packages.wrapPython
|
|
];
|
|
|
|
pythonPath = [
|
|
python3Packages.gitpython
|
|
python3Packages.requests
|
|
];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/lib
|
|
cp ${./update.py} $out/bin/vim-plugins-updater
|
|
cp ${./get-plugins.nix} $out/bin/get-plugins.nix
|
|
|
|
# wrap python scripts
|
|
makeWrapperArgs+=( --prefix PATH : "${
|
|
lib.makeBinPath [
|
|
nix
|
|
nix-prefetch-git
|
|
neovim-unwrapped
|
|
nurl
|
|
]
|
|
}" --prefix PYTHONPATH : "${./.}:${../../../../../../maintainers/scripts/pluginupdate-py}" )
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
shellHook = ''
|
|
export PYTHONPATH=pkgs/applications/editors/vim/plugins:maintainers/scripts/pluginupdate-py:$PYTHONPATH
|
|
'';
|
|
|
|
passthru.updateScript = writeShellScript "updateScript" ''
|
|
# don't saturate the update bot connection
|
|
${lib.getExe vimPluginsUpdater} --proc 2 update
|
|
'';
|
|
|
|
meta.mainProgram = "vim-plugins-updater";
|
|
}
|