fix(#2422): allow Nix package version generation
This commit is contained in:
parent
b7f523c3a1
commit
53348df68d
2 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ pkgs.stdenv.mkDerivation {
|
|||
cp "${./../mcp_server.py}" "$out/${runtimeDir}/mcp_server.py"
|
||||
cp "${./../requirements.txt}" "$out/${runtimeDir}/requirements.txt"
|
||||
cp -r "${./../api}" "$out/${runtimeDir}/api"
|
||||
chmod u+w "$out/${runtimeDir}/api"
|
||||
cp -r "${./../static}" "$out/${runtimeDir}/static"
|
||||
printf "__version__ = '%s'\n" "$version" > "$out/${runtimeDir}/api/_version.py"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ def test_nix_package_version_comes_from_flake_source_revision():
|
|||
assert "0.51.0" not in FLAKE_NIX
|
||||
assert "0.51.0" not in PACKAGES_NIX
|
||||
assert 'api/_version.py' in PACKAGES_NIX
|
||||
assert 'chmod u+w "$out/${runtimeDir}/api"' in PACKAGES_NIX
|
||||
|
||||
|
||||
def test_nixos_module_decouples_agent_dir_from_python_inference():
|
||||
|
|
|
|||
Loading…
Reference in a new issue