!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

403 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 Aug 2025
@weethet:catgirl.cloudWeetHet

Probably this would be the fix:

Path defaultTempDir()
{
    auto dir = settings.tempDir.get().or_else([] {
        return getEnvNonEmpty("TMPDIR").and_then([](auto val) -> std::optional<Path> {
#if __APPLE__
            /* On macOS, don't use the per-session TMPDIR (as set e.g. by
               sshd). This breaks build users because they don't have access
               to the TMPDIR, in particular in ‘nix-store --serve’. */
            if (val.starts_with("/var/folders/")) {
                return std::nullopt;
            }
#endif
            return val;
        });
    }).value_or("/tmp");
    
    return canonPath(dir, true);
}
09:16:15
@emilazy:matrix.orgemilywhy would it need to change? did I break the behaviour of something in the temp directory functions?10:27:50
@emilazy:matrix.orgemily tbh that #if __APPLE__ seems obsolete 10:28:21
@emilazy:matrix.orgemily given that builds are now in /nix 10:28:26
@emilazy:matrix.orgemilymaybe we could just drop it…10:28:30

Show newer messages


Back to Room ListRoom Version: 10