Add plugin helper with agent skill for updating plugins

This commit is contained in:
pleb
2026-06-14 10:26:22 -07:00
parent a9881ebec4
commit caaa4a6558
23 changed files with 1604 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
{
description = "Beat Saber plugin-helper CLI";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
python = pkgs.python313;
in
{
packages.${system}.default = python.pkgs.buildPythonApplication {
pname = "plugin-helper";
version = "0.1.0";
src = ./.;
pyproject = true;
build-system = with python.pkgs; [
setuptools
wheel
];
nativeCheckInputs = [ ];
checkPhase = ''
runHook preCheck
python -m unittest discover -s tests
runHook postCheck
'';
};
apps.${system}.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/plugin-helper";
};
devShells.${system}.default = pkgs.mkShell {
packages = [
python
pkgs.ruff
];
shellHook = ''
export PYTHONPATH="$PWD/src''${PYTHONPATH:+:$PYTHONPATH}"
'';
};
};
}