From 53348df68df4fc74765cc2b5f8c4d2763f7ada02 Mon Sep 17 00:00:00 2001 From: Rod Boev Date: Thu, 9 Jul 2026 12:59:01 -0400 Subject: [PATCH] fix(#2422): allow Nix package version generation --- nix/packages.nix | 1 + tests/test_nix_flake_module_source.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nix/packages.nix b/nix/packages.nix index ecfe2fa7..e5f10dbb 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -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" diff --git a/tests/test_nix_flake_module_source.py b/tests/test_nix_flake_module_source.py index e9f12bb6..06be6089 100644 --- a/tests/test_nix_flake_module_source.py +++ b/tests/test_nix_flake_module_source.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():