put render-options not in the toplevel nix store path

on start python will do a listdir on the hole nix store otherwise
This commit is contained in:
Jörg Thalheim
2024-09-02 17:46:05 +02:00
parent 574567c1c4
commit 9de48de991
2 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@
# Simply evaluated options (JSON) # Simply evaluated options (JSON)
renderOptions = renderOptions =
pkgs.runCommand "renderOptions.py" pkgs.runCommand "render-options"
{ {
# TODO: ruff does not splice properly in nativeBuildInputs # TODO: ruff does not splice properly in nativeBuildInputs
depsBuildBuild = [ pkgs.ruff ]; depsBuildBuild = [ pkgs.ruff ];
@@ -34,12 +34,12 @@
]; ];
} }
'' ''
install ${./scripts/renderOptions.py} $out install -D -m755 ${./render_options}/__init__.py $out/bin/render-options
patchShebangs --build $out patchShebangs --build $out/bin/render-options
ruff format --check --diff $out ruff format --check --diff $out/bin/render-options
ruff check --line-length 88 $out ruff check --line-length 88 $out/bin/render-options
mypy --strict $out mypy --strict $out/bin/render-options
''; '';
asciinema-player-js = pkgs.fetchurl { asciinema-player-js = pkgs.fetchurl {
@@ -70,7 +70,7 @@
mkdir $out mkdir $out
# The python script will place mkDocs files in the output directory # The python script will place mkDocs files in the output directory
python3 ${renderOptions} exec python3 ${renderOptions}/bin/render-options
''; '';
in in
{ {