Follow up of https://gerrit.lix.systems/c/lix/+/5346?tab=comments for the obvious pieces. Change-Id: If0f640f786b0778d016187cb24c0513a48b5a30b Signed-off-by: Raito Bezarius <raito@lix.systems>
842 B
842 B
synopsis, cls, issues, category, credits
| synopsis | cls | issues | category | credits | |||
|---|---|---|---|---|---|---|---|
| Nix shells' `$NIX_BUILD_TOP` are shorter |
|
|
Fixes |
|
Following the changes in 2.94.0 to shorten build directory paths, aimed at resolving UNIX domain socket length issues and improving nix-shell, we inadvertently introduced an excessively long path for the $NIX_BUILD_TOP environment variable used by Nix shells (their effective temporary /build directory).
To fix this, we replaced the build-top-$HASH directory name with simply build-top, reducing these paths by at least 30 characters.
We also added a test to ensure that Nix shells do not introduce more than 50 extra characters relative to their base directory (e.g., /tmp when $TMPDIR is not set).