From b261df37b98793893979ea7ed8a23c73a0fdf544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= <1771332+vlaci@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:26:00 +0100 Subject: [PATCH] devenv: remove `LD_LIBRARY_PATH` hack from running python environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'devenv': 'github:vlaci/devenv/5186fecbe2835ac45018ea4940388f8523bf1624' (2024-10-04) → 'github:vlaci/devenv/385d38cfb6872e7f95cae30d94f7fc4afd23fd76' (2024-10-30) From the related PR[^1] in `devenv`: Injecting `LD_LIBRARY_PATH` to the Python runtime environment is great to bypass the need of having to patch non-nix binaries loaded into that environment, however it breaks down, when Python executes any other program not compiled for the given Nix system, e.g. a shell script via `subprocess`. To work this around, `devenv` will inject a `pth`[^2] file to the virtual environment it creates, which mangles the `LD_LIBRARY_PATH` variable, undoing any changes to it made by `devenv` but preserving changes from other sources. [^1]: https://github.com/cachix/devenv/pull/1562 [^2]: https://docs.python.org/3/library/site.html --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 8fa8b9f244..404df89b8c 100644 --- a/flake.lock +++ b/flake.lock @@ -182,11 +182,11 @@ "pre-commit-hooks": "pre-commit-hooks_2" }, "locked": { - "lastModified": 1728033307, - "narHash": "sha256-7+qCx/he1iiDbF7gA9AAAmmKvEvzRoSl8HCtNHkaTgw=", + "lastModified": 1730287473, + "narHash": "sha256-6bMC/lXMcC4Cl2JrPC934h5/E6cBMQJExv4dK9/Oga8=", "owner": "vlaci", "repo": "devenv", - "rev": "5186fecbe2835ac45018ea4940388f8523bf1624", + "rev": "385d38cfb6872e7f95cae30d94f7fc4afd23fd76", "type": "github" }, "original": {