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 af0a1dd3f2
commit 0de5dea92a
2 changed files with 7 additions and 7 deletions

View File

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